diff options
author | John Millaway <john43@users.sourceforge.net> | 2006-02-14 20:23:47 +0000 |
---|---|---|
committer | John Millaway <john43@users.sourceforge.net> | 2006-02-14 20:23:47 +0000 |
commit | 3b1d83312afd796a1691f6cda10c34993cef019f (patch) | |
tree | 30516796568d6ad07a85cc54ce69780f87947dd8 /flexint.h | |
parent | c42c40874a6f7f01904ac4ac7d6c70d1ab64aa77 (diff) |
Added C99 macro for inttypes, just to be conformant.
Diffstat (limited to 'flexint.h')
-rw-r--r-- | flexint.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -6,6 +6,14 @@ /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ #if __STDC_VERSION__ >= 199901L + +/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, + * if you want the limit (max/min) macros for int types. + */ +#ifndef __STDC_LIMIT_MACROS +#define __STDC_LIMIT_MACROS 1 +#endif + #include <inttypes.h> typedef int8_t flex_int8_t; typedef uint8_t flex_uint8_t; |