]> The Tcpdump Group git mirrors - libpcap/commit
The official #define for 32-bit and 64-bit Windows is _WIN32.
authorGuy Harris <[email protected]>
Mon, 31 Aug 2015 21:39:23 +0000 (14:39 -0700)
committerGuy Harris <[email protected]>
Mon, 31 Aug 2015 21:39:23 +0000 (14:39 -0700)
commit5ff25beec7ad7fb229b943ecb86fe55bcad531c4
tree0c9dc7ea5723347abf7836b66695804a0f3ac546
parent1a44e70c2d2b754b3f92c66a0a590f6fdc347566
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.
24 files changed:
Win32/Include/arpa/nameser.h
Win32/Include/net/netdb.h
Win32/Src/gai_strerror.c
Win32/Src/getaddrinfo.c
Win32/Src/getopt.c
Win32/Src/inet_pton.c
bpf/net/bpf_filter.c
bpf_image.c
etherent.c
gencode.c
grammar.y
inet.c
nametoaddr.c
optimize.c
pcap-common.c
pcap-int.h
pcap-win32.c
pcap.c
pcap/pcap.h
savefile.c
scanner.l
sf-pcap-ng.c
sf-pcap.c
tests/filtertest.c