X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/4124bed500f41fcd2890fc85c24f3e49652bd0af..refs/pull/433/head:/tcpdump-stdinc.h diff --git a/tcpdump-stdinc.h b/tcpdump-stdinc.h index b5166f27..32f8fc92 100644 --- a/tcpdump-stdinc.h +++ b/tcpdump-stdinc.h @@ -39,12 +39,11 @@ #ifndef tcpdump_stdinc_h #define tcpdump_stdinc_h +#include + #ifdef WIN32 -#ifdef __MINGW32__ #include -#endif - #include #include #include @@ -52,15 +51,10 @@ #include #include #include -#include #include #include #include /* in wpcap's Win32/include */ -#ifndef NBBY -#define NBBY 8 -#endif - #ifndef uint8_t #define uint8_t unsigned char #endif @@ -241,11 +235,10 @@ typedef char* caddr_t; * Note: this also requires that padding be put into the structure, * at least for compilers where it's implemented as __attribute__((packed)). */ -#if defined(__GNUC__) +#if !(defined(_MSC_VER) && defined(UNALIGNED)) +/* MSVC may have its own macro defined with the same name and purpose. */ #undef UNALIGNED #define UNALIGNED __attribute__((packed)) -#else - /* MSVC may have its own macro defined with the same name and purpose. */ #endif #if defined(WIN32) || defined(MSDOS)