bracket c99 stuff (rounding) out with #if __STDC_VERSION__ >= 199901L