aboutsummaryrefslogtreecommitdiff
path: root/gencode.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-09-04 00:51:48 -0700
committerGuy Harris <guy@alum.mit.edu>2017-09-04 00:51:48 -0700
commita5514e389019adda62f2d34dd02555f95af0f6d9 (patch)
tree37eb924a593af1ea6bdf2705aad453b6db7ee07c /gencode.c
parent788b880617318c55db670e533ac3124ea77eafb9 (diff)
Put the stuff to get the sized integer types defined into pcap-types.h.
Have pcap-types.h arrange to define the intN_t/u_intN_t types, and the INTn_MAX/UINTn_MAX values, on all platforms, and use it wherever it's appropriate. Include it up front in scanner.l, to avoid redefinitions of the INTn_MAX/UINTn_MAX types.
Diffstat (limited to 'gencode.c')
-rw-r--r--gencode.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/gencode.c b/gencode.c
index 49011de2..f0ad3426 100644
--- a/gencode.c
+++ b/gencode.c
@@ -24,18 +24,10 @@
#include <config.h>
#endif
+#include <pcap-types.h>
#ifdef _WIN32
#include <pcap-stdinc.h>
#else /* _WIN32 */
-#if HAVE_INTTYPES_H
-#include <inttypes.h>
-#elif HAVE_STDINT_H
-#include <stdint.h>
-#endif
-#ifdef HAVE_SYS_BITYPES_H
-#include <sys/bitypes.h>
-#endif
-#include <sys/types.h>
#include <sys/socket.h>
#endif /* _WIN32 */