From bcced6c4f6a79e09ed3961632b2faf81fe873137 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Wed, 27 Nov 2024 12:01:18 +0100 Subject: Fix attempts to detect Windows using _WIN32 --- src/afc.c | 2 +- src/idevice.c | 4 ++-- src/lockdown-cu.c | 2 +- src/lockdown.c | 2 +- src/notification_proxy.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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 #include -#ifdef WIN32 +#ifdef _WIN32 #include #include #include @@ -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 #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 #define sleep(x) Sleep(x*1000) #endif -- cgit v1.1-32-gdbae