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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user