diff options
author | 2024-12-02 06:25:35 +0100 | |
---|---|---|
committer | 2024-12-02 06:25:35 +0100 | |
commit | 5235448cead2b6e6c9e891f9a95e89373669402f (patch) | |
tree | 797a0548fa9798ae844fd90eaae3892b65e30176 | |
parent | 51c313dda2887d4e5c9290a3eee397511bbaaf85 (diff) | |
download | libideviceactivation-5235448cead2b6e6c9e891f9a95e89373669402f.tar.gz libideviceactivation-5235448cead2b6e6c9e891f9a95e89373669402f.tar.bz2 |
Change WIN32 to _WIN32 to check if running on Windows
-rw-r--r-- | src/activation.c | 4 | ||||
-rw-r--r-- | tools/ideviceactivation.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/activation.c b/src/activation.c index c60d669..8cf6c0a 100644 --- a/src/activation.c +++ b/src/activation.c @@ -32,7 +32,7 @@ #include <libxml/HTMLtree.h> #include <curl/curl.h> -#ifdef WIN32 +#ifdef _WIN32 #define IDEVICE_ACTIVATION_API __declspec( dllexport ) #else #ifdef HAVE_FVISIBILITY @@ -42,7 +42,7 @@ #endif #endif -#ifdef WIN32 +#ifdef _WIN32 #include <windows.h> #define strncasecmp _strnicmp #endif diff --git a/tools/ideviceactivation.c b/tools/ideviceactivation.c index 757c54e..ef16ca0 100644 --- a/tools/ideviceactivation.c +++ b/tools/ideviceactivation.c @@ -30,7 +30,7 @@ #include <string.h> #include <unistd.h> #include <ctype.h> -#ifndef WIN32 +#ifndef _WIN32 #include <signal.h> #endif @@ -40,7 +40,7 @@ #include <libimobiledevice/mobileactivation.h> #include <libideviceactivation.h> -#ifdef WIN32 +#ifdef _WIN32 #include <windows.h> #include <conio.h> #else @@ -74,7 +74,7 @@ static void print_usage(int argc, char **argv) printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n"); } -#ifdef WIN32 +#ifdef _WIN32 #define BS_CC '\b' #define my_getch getch #else @@ -146,7 +146,7 @@ int main(int argc, char *argv[]) } op_t; op_t op = OP_NONE; -#ifndef WIN32 +#ifndef _WIN32 signal(SIGPIPE, SIG_IGN); #endif /* parse cmdline args */ |