summaryrefslogtreecommitdiff
path: root/netdissect-stdinc.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-08-11 11:35:55 -0700
committerGuy Harris <guy@alum.mit.edu>2019-08-11 11:35:55 -0700
commit9860220fde8166ca2508c2c6da5d77cf335748de (patch)
tree473458cd3eaf4474c94bb2795815c116b56d428c /netdissect-stdinc.h
parente772de423231e5e866e78a456ac055bddf03ffb0 (diff)
downloadtcpdump-9860220fde8166ca2508c2c6da5d77cf335748de.tar.gz
<inttypes.h> should suffice to define PRI[doux]64.
Diffstat (limited to 'netdissect-stdinc.h')
-rw-r--r--netdissect-stdinc.h48
1 files changed, 1 insertions, 47 deletions
diff --git a/netdissect-stdinc.h b/netdissect-stdinc.h
index aed38b31..3e85e825 100644
--- a/netdissect-stdinc.h
+++ b/netdissect-stdinc.h
@@ -100,58 +100,12 @@
/*
* Suppress definition of intN_t in bittypes.h, which might be included
* by <pcap/pcap.h> in older versions of WinPcap.
- * (Yes, HAVE_U_INTn_T, as the definition guards are UN*X-oriented, and
- * we check for u_intN_t in the UN*X configure script.)
+ * (Yes, HAVE_U_INTn_T, as the definition guards are UN*X-oriented.)
*/
#define HAVE_U_INT8_T
#define HAVE_U_INT16_T
#define HAVE_U_INT32_T
#define HAVE_U_INT64_T
-
- /*
- * These may be defined by <inttypes.h>. If not, define them
- * ourselves.
- *
- * XXX - given the assumptions above, will they ever *not* be
- * defined by <inttypes.h>?
- *
- * XXX - for MSVC, we always want the _MSC_EXTENSIONS versions.
- * What about other compilers? If, as the MinGW Web site says MinGW
- * does, the other compilers just use Microsoft's run-time library,
- * then they should probably use the _MSC_EXTENSIONS even if the
- * compiler doesn't define _MSC_EXTENSIONS.
- */
- #ifndef PRId64
- #ifdef _MSC_EXTENSIONS
- #define PRId64 "I64d"
- #else
- #define PRId64 "lld"
- #endif
- #endif /* PRId64 */
-
- #ifndef PRIo64
- #ifdef _MSC_EXTENSIONS
- #define PRIo64 "I64o"
- #else
- #define PRIo64 "llo"
- #endif
- #endif /* PRIo64 */
-
- #ifndef PRIx64
- #ifdef _MSC_EXTENSIONS
- #define PRIx64 "I64x"
- #else
- #define PRIx64 "llx"
- #endif
- #endif
-
- #ifndef PRIu64
- #ifdef _MSC_EXTENSIONS
- #define PRIu64 "I64u"
- #else
- #define PRIu64 "llu"
- #endif
- #endif
#endif
#endif /* HAVE_PCAP_PCAP_INTTYPES_H */