From 5ff25beec7ad7fb229b943ecb86fe55bcad531c4 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 31 Aug 2015 14:39:23 -0700 Subject: 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. --- tests/filtertest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/filtertest.c b/tests/filtertest.c index e45db21e..a7e57389 100644 --- a/tests/filtertest.c +++ b/tests/filtertest.c @@ -194,9 +194,9 @@ main(int argc, char **argv) pcap_t *pd; struct bpf_program fcode; -#ifdef WIN32 +#ifdef _WIN32 if(wsockinit() != 0) return 1; -#endif /* WIN32 */ +#endif /* _WIN32 */ #ifndef BDEBUG dflag = 1; -- cgit v1.2.1