Replace WIN32 with _WIN32

Using WIN32 depends on the build environment defining the variable.
_WIN32 is a predefined MSVC macro and is always available.

Signed-off-by: Tim Crawford <crawfxrd@gmail.com>
This commit is contained in:
Tim Crawford
2017-11-28 20:48:48 -05:00
parent cdb437c545
commit aba0f7da1a
19 changed files with 25 additions and 25 deletions

View File

@@ -19,7 +19,7 @@
#include "config.h"
#endif
#if defined(WIN32)
#if defined(_WIN32)
#include <winsock2.h>
#include "win32_compat.h"
#pragma comment(lib, "ws2_32.lib")
@@ -354,7 +354,7 @@ int main(int argc, char *argv[])
int i;
static int show_help = 0, show_usage = 0, debug = 0;
#ifdef WIN32
#ifdef _WIN32
if (WSAStartup(MAKEWORD(2,2), &wsaData) != 0) {
printf("Failed to start Winsock2\n");
exit(10);