aboutsummaryrefslogtreecommitdiff
path: root/pcap-types.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-09-10 10:35:55 -0700
committerGuy Harris <guy@alum.mit.edu>2017-09-10 10:35:55 -0700
commitfbb8b217dd7a927ec1e9f635f15590618dc12d81 (patch)
treee14fd8778491e274dcbf4b1d532eca45e81eb20d /pcap-types.h
parent94507a758097679120f0dff8b2cbc09ea6f892c0 (diff)
We don't define HAVE_{INT,UINT}_n_T; no point in checking them.
They were just copied over from the old Win32/Include/bittypes.h, which probably came from a header in a project that *did* define them if appropriate. That's just leftover junk now.
Diffstat (limited to 'pcap-types.h')
-rw-r--r--pcap-types.h35
1 files changed, 12 insertions, 23 deletions
diff --git a/pcap-types.h b/pcap-types.h
index f1ec4484..66de7a48 100644
--- a/pcap-types.h
+++ b/pcap-types.h
@@ -68,29 +68,18 @@
/*
* Earlier VS; we have to define this stuff ourselves.
*/
- #ifndef HAVE_U_INT8_T
- typedef unsigned char u_int8_t;
- typedef signed char int8_t;
- #endif
-
- #ifndef HAVE_U_INT16_T
- typedef unsigned short u_int16_t;
- typedef signed short int16_t;
- #endif
-
- #ifndef HAVE_U_INT32_T
- typedef unsigned int u_int32_t;
- typedef signed int int32_t;
- #endif
-
- #ifndef HAVE_U_INT64_T
- #ifdef _MSC_EXTENSIONS
- typedef unsigned _int64 u_int64_t;
- typedef _int64 int64_t;
- #else /* _MSC_EXTENSIONS */
- typedef unsigned long long u_int64_t;
- typedef long long int64_t;
- #endif
+ typedef unsigned char u_int8_t;
+ typedef signed char int8_t;
+ typedef unsigned short u_int16_t;
+ typedef signed short int16_t;
+ typedef unsigned int u_int32_t;
+ typedef signed int int32_t;
+ #ifdef _MSC_EXTENSIONS
+ typedef unsigned _int64 u_int64_t;
+ typedef _int64 int64_t;
+ #else /* _MSC_EXTENSIONS */
+ typedef unsigned long long u_int64_t;
+ typedef long long int64_t;
#endif
#endif