]> granicus.if.org Git - flex/commitdiff
include inttypes.h for folks who really are C99
authorWill Estes <wlestes@users.sourceforge.net>
Mon, 25 Nov 2002 16:19:35 +0000 (16:19 +0000)
committerWill Estes <wlestes@users.sourceforge.net>
Mon, 25 Nov 2002 16:19:35 +0000 (16:19 +0000)
flexint.h

index a9d5715d24ab1d3d8f306a5b325663c5fd6e86ce..e2b425fd3e96e48d617f7eb4b86b8c11a126a906 100644 (file)
--- a/flexint.h
+++ b/flexint.h
@@ -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