diff options
| author | 2024-11-27 12:01:18 +0100 | |
|---|---|---|
| committer | 2024-11-29 14:36:34 +0100 | |
| commit | bcced6c4f6a79e09ed3961632b2faf81fe873137 (patch) | |
| tree | 71bb6a70a3438c68229e4906e6bce14974a9aee8 /src | |
| parent | ba829e6f1a62bdad7866572d1e2cff1836ced742 (diff) | |
| download | libimobiledevice-bcced6c4f6a79e09ed3961632b2faf81fe873137.tar.gz libimobiledevice-bcced6c4f6a79e09ed3961632b2faf81fe873137.tar.bz2 | |
Fix attempts to detect Windows using _WIN32
Diffstat (limited to 'src')
| -rw-r--r-- | src/afc.c | 2 | ||||
| -rw-r--r-- | src/idevice.c | 4 | ||||
| -rw-r--r-- | src/lockdown-cu.c | 2 | ||||
| -rw-r--r-- | src/lockdown.c | 2 | ||||
| -rw-r--r-- | src/notification_proxy.c | 2 |
5 files changed, 6 insertions, 6 deletions
| @@ -338,7 +338,7 @@ static afc_error_t afc_receive_data(afc_client_t client, char **bytes, uint32_t | |||
| 338 | free(buf); | 338 | free(buf); |
| 339 | 339 | ||
| 340 | debug_info("WARNING: Unknown operation code received 0x%llx param1=%lld", header.operation, param1); | 340 | debug_info("WARNING: Unknown operation code received 0x%llx param1=%lld", header.operation, param1); |
| 341 | #ifndef WIN32 | 341 | #ifndef _WIN32 |
| 342 | fprintf(stderr, "%s: WARNING: Unknown operation code received 0x%llx param1=%lld", __func__, (long long)header.operation, (long long)param1); | 342 | fprintf(stderr, "%s: WARNING: Unknown operation code received 0x%llx param1=%lld", __func__, (long long)header.operation, (long long)param1); |
| 343 | #endif | 343 | #endif |
| 344 | 344 | ||
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 @@ | |||
| 30 | #include <errno.h> | 30 | #include <errno.h> |
| 31 | #include <time.h> | 31 | #include <time.h> |
| 32 | 32 | ||
| 33 | #ifdef WIN32 | 33 | #ifdef _WIN32 |
| 34 | #include <winsock2.h> | 34 | #include <winsock2.h> |
| 35 | #include <ws2tcpip.h> | 35 | #include <ws2tcpip.h> |
| 36 | #include <windows.h> | 36 | #include <windows.h> |
| @@ -1338,7 +1338,7 @@ idevice_error_t idevice_connection_enable_ssl(idevice_connection_t connection) | |||
| 1338 | if (ssl_error == 0 || ssl_error != SSL_ERROR_WANT_READ) { | 1338 | if (ssl_error == 0 || ssl_error != SSL_ERROR_WANT_READ) { |
| 1339 | break; | 1339 | break; |
| 1340 | } | 1340 | } |
| 1341 | #ifdef WIN32 | 1341 | #ifdef _WIN32 |
| 1342 | Sleep(100); | 1342 | Sleep(100); |
| 1343 | #else | 1343 | #else |
| 1344 | struct timespec ts = { 0, 100000000 }; | 1344 | 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 | |||
| 653 | CFStringGetCString(cname, hostname, sizeof(hostname), kCFStringEncodingUTF8); | 653 | CFStringGetCString(cname, hostname, sizeof(hostname), kCFStringEncodingUTF8); |
| 654 | CFRelease(cname); | 654 | CFRelease(cname); |
| 655 | #else | 655 | #else |
| 656 | #ifdef WIN32 | 656 | #ifdef _WIN32 |
| 657 | DWORD hostname_len = sizeof(hostname); | 657 | DWORD hostname_len = sizeof(hostname); |
| 658 | GetComputerName(hostname, &hostname_len); | 658 | GetComputerName(hostname, &hostname_len); |
| 659 | #else | 659 | #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 @@ | |||
| 43 | #include "common/userpref.h" | 43 | #include "common/userpref.h" |
| 44 | #include "asprintf.h" | 44 | #include "asprintf.h" |
| 45 | 45 | ||
| 46 | #ifdef WIN32 | 46 | #ifdef _WIN32 |
| 47 | #include <windows.h> | 47 | #include <windows.h> |
| 48 | #define sleep(x) Sleep(x*1000) | 48 | #define sleep(x) Sleep(x*1000) |
| 49 | #endif | 49 | #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 @@ | |||
| 31 | #include "property_list_service.h" | 31 | #include "property_list_service.h" |
| 32 | #include "common/debug.h" | 32 | #include "common/debug.h" |
| 33 | 33 | ||
| 34 | #ifdef WIN32 | 34 | #ifdef _WIN32 |
| 35 | #include <windows.h> | 35 | #include <windows.h> |
| 36 | #define sleep(x) Sleep(x*1000) | 36 | #define sleep(x) Sleep(x*1000) |
| 37 | #endif | 37 | #endif |
