Skip to content

Commit

Permalink
Change WIN32 to _WIN32 to check if running on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Dec 2, 2024
1 parent 51c313d commit 5235448
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/activation.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -42,7 +42,7 @@
#endif
#endif

#ifdef WIN32
#ifdef _WIN32
#include <windows.h>
#define strncasecmp _strnicmp
#endif
Expand Down
8 changes: 4 additions & 4 deletions tools/ideviceactivation.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <string.h>
#include <unistd.h>
#include <ctype.h>
#ifndef WIN32
#ifndef _WIN32
#include <signal.h>
#endif

Expand All @@ -40,7 +40,7 @@
#include <libimobiledevice/mobileactivation.h>
#include <libideviceactivation.h>

#ifdef WIN32
#ifdef _WIN32
#include <windows.h>
#include <conio.h>
#else
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 5235448

Please sign in to comment.