summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Duncan Ogilvie2024-11-27 12:01:18 +0100
committerGravatar Nikias Bassen2024-11-29 14:36:34 +0100
commitbcced6c4f6a79e09ed3961632b2faf81fe873137 (patch)
tree71bb6a70a3438c68229e4906e6bce14974a9aee8 /src
parentba829e6f1a62bdad7866572d1e2cff1836ced742 (diff)
downloadlibimobiledevice-bcced6c4f6a79e09ed3961632b2faf81fe873137.tar.gz
libimobiledevice-bcced6c4f6a79e09ed3961632b2faf81fe873137.tar.bz2
Fix attempts to detect Windows using _WIN32
Diffstat (limited to 'src')
-rw-r--r--src/afc.c2
-rw-r--r--src/idevice.c4
-rw-r--r--src/lockdown-cu.c2
-rw-r--r--src/lockdown.c2
-rw-r--r--src/notification_proxy.c2
5 files changed, 6 insertions, 6 deletions
diff --git a/src/afc.c b/src/afc.c
index 1b4070b..d9b35b7 100644
--- a/src/afc.c
+++ b/src/afc.c
@@ -338,7 +338,7 @@ static afc_error_t afc_receive_data(afc_client_t client, char **bytes, uint32_t
free(buf);
debug_info("WARNING: Unknown operation code received 0x%llx param1=%lld", header.operation, param1);
-#ifndef WIN32
+#ifndef _WIN32
fprintf(stderr, "%s: WARNING: Unknown operation code received 0x%llx param1=%lld", __func__, (long long)header.operation, (long long)param1);
#endif
diff --git a/src/idevice.c b/src/idevice.c
index d4ecf60..b14db66 100644
--- a/src/idevice.c
+++ b/src/idevice.c
@@ -30,7 +30,7 @@
#include <errno.h>
#include <time.h>
-#ifdef WIN32
+#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>
@@ -1338,7 +1338,7 @@ idevice_error_t idevice_connection_enable_ssl(idevice_connection_t connection)
if (ssl_error == 0 || ssl_error != SSL_ERROR_WANT_READ) {
break;
}
-#ifdef WIN32
+#ifdef _WIN32
Sleep(100);
#else
struct timespec ts = { 0, 100000000 };
diff --git a/src/lockdown-cu.c b/src/lockdown-cu.c
index 1afc2c5..e0af5e2 100644
--- a/src/lockdown-cu.c
+++ b/src/lockdown-cu.c
@@ -653,7 +653,7 @@ lockdownd_error_t lockdownd_cu_pairing_create(lockdownd_client_t client, lockdow
CFStringGetCString(cname, hostname, sizeof(hostname), kCFStringEncodingUTF8);
CFRelease(cname);
#else
-#ifdef WIN32
+#ifdef _WIN32
DWORD hostname_len = sizeof(hostname);
GetComputerName(hostname, &hostname_len);
#else
diff --git a/src/lockdown.c b/src/lockdown.c
index 256bff0..be55934 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -43,7 +43,7 @@
#include "common/userpref.h"
#include "asprintf.h"
-#ifdef WIN32
+#ifdef _WIN32
#include <windows.h>
#define sleep(x) Sleep(x*1000)
#endif
diff --git a/src/notification_proxy.c b/src/notification_proxy.c
index c5f29f5..9d983ba 100644
--- a/src/notification_proxy.c
+++ b/src/notification_proxy.c
@@ -31,7 +31,7 @@
#include "property_list_service.h"
#include "common/debug.h"
-#ifdef WIN32
+#ifdef _WIN32
#include <windows.h>
#define sleep(x) Sleep(x*1000)
#endif