diff options
Diffstat (limited to 'pcap-types.h')
-rw-r--r-- | pcap-types.h | 35 |
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 |