X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/9860220fde8166ca2508c2c6da5d77cf335748de..0e15d065d56be3dcaee6fb95be38d69559338b21:/netdissect-stdinc.h diff --git a/netdissect-stdinc.h b/netdissect-stdinc.h index 3e85e825..8b8eaf9a 100644 --- a/netdissect-stdinc.h +++ b/netdissect-stdinc.h @@ -46,6 +46,9 @@ #include "varattrs.h" /* + * If we're compiling with Visual Studio, make sure we have at least + * VS 2015 or later, so we have sufficient C99 support. + * * XXX - verify that we have at least C99 support on UN*Xes? * * What about MinGW or various DOS toolchains? We're currently assuming @@ -80,6 +83,9 @@ */ /* + * Include to get the integer types and PRi[doux]64 values + * defined. + * * If the compiler is MSVC, we require VS 2015 or newer, so we * have - and support for %zu in the formatted * printing functions. @@ -118,7 +124,6 @@ #include #include #include -#include #include #include #include @@ -157,7 +162,6 @@ * by adding a preceding underscore; we *want* the UN*Xisms, so add * #defines to let us use them. */ - #define isascii __isascii #define isatty _isatty #define stat _stat #define strdup _strdup @@ -216,7 +220,6 @@ typedef char* caddr_t; * Includes and definitions for various flavors of UN*X. */ -#include #include #include #include