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

@@ -34,7 +34,7 @@
/* This is the host/port we connect to.*/
#define TARGET "127.0.0.1:3260"
#if defined(WIN32)
#if defined(_WIN32)
#include <winsock2.h>
#include "win32/win32_compat.h"
#pragma comment(lib, "ws2_32.lib")
@@ -625,7 +625,7 @@ int main(int argc _U_, char *argv[] _U_)
struct client_state clnt;
printf("iscsi client\n");
#if defined(WIN32)
#if defined(_WIN32)
if (WSAStartup(MAKEWORD(2,2), &wsaData) != 0) {
printf("Failed to start Winsock2\n");
exit(10);