diff options
author | Will Estes <wlestes@users.sourceforge.net> | 2002-11-25 16:19:35 +0000 |
---|---|---|
committer | Will Estes <wlestes@users.sourceforge.net> | 2002-11-25 16:19:35 +0000 |
commit | 272978a40d0ee38c2c14d579549ea4ac2cdb9d09 (patch) | |
tree | 43c14a927d79867da73af60c1bd25d77b390f3ca /flexint.h | |
parent | 6d34758163bc4c6b5b961eae35b52e550b8a3f33 (diff) |
include inttypes.h for folks who really are C99
Diffstat (limited to 'flexint.h')
-rw-r--r-- | flexint.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -3,6 +3,17 @@ #ifndef FLEXINT_H #define FLEXINT_H +/* try to get all the integer types */ + +/* if you're a C99 system, then you should say so and we just include +the inttypes.h header. If you're not C99, by default we try to include +sys/types.h. If that doesn't work for you, then define +FLEX_NEED_INTEGRAL_TYPE_DEFINITIONS. If that gives you problems, check +that your header files and such are happy. */ + +#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901 +#include <inttypes.h> +#endif #ifndef FLEX_NEED_INTEGRAL_TYPE_DEFINITIONS #include <sys/types.h> #else |