summaryrefslogtreecommitdiff
path: root/optimize.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-08-31 14:39:23 -0700
committerGuy Harris <guy@alum.mit.edu>2015-08-31 14:39:23 -0700
commit5ff25beec7ad7fb229b943ecb86fe55bcad531c4 (patch)
tree0c9dc7ea5723347abf7836b66695804a0f3ac546 /optimize.c
parent1a44e70c2d2b754b3f92c66a0a590f6fdc347566 (diff)
downloadlibpcap-5ff25beec7ad7fb229b943ecb86fe55bcad531c4.tar.gz
The official #define for 32-bit and 64-bit Windows is _WIN32.
It's _WIN32, with a leading underscore, not WIN32. See, for example: https://sourceforge.net/p/predef/wiki/OperatingSystems/ and https://msdn.microsoft.com/en-us/library/b0084kay.aspx *Some* environments may also define WIN32, but we shouldn't depend on that.
Diffstat (limited to 'optimize.c')
-rw-r--r--optimize.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/optimize.c b/optimize.c
index ada20197..dba8edfd 100644
--- a/optimize.c
+++ b/optimize.c
@@ -25,9 +25,9 @@
#include "config.h"
#endif
-#ifdef WIN32
+#ifdef _WIN32
#include <pcap-stdinc.h>
-#else /* WIN32 */
+#else /* _WIN32 */
#if HAVE_INTTYPES_H
#include <inttypes.h>
#elif HAVE_STDINT_H
@@ -37,7 +37,7 @@
#include <sys/bitypes.h>
#endif
#include <sys/types.h>
-#endif /* WIN32 */
+#endif /* _WIN32 */
#include <stdio.h>
#include <stdlib.h>
@@ -63,7 +63,7 @@ extern int _w32_ffs (int mask);
#define ffs _w32_ffs
#endif
-#if defined(WIN32) && defined (_MSC_VER)
+#if defined(_WIN32) && defined (_MSC_VER)
int ffs(int mask);
#endif