diff options
| author | 2024-11-27 12:01:18 +0100 | |
|---|---|---|
| committer | 2024-11-29 14:36:34 +0100 | |
| commit | bcced6c4f6a79e09ed3961632b2faf81fe873137 (patch) | |
| tree | 71bb6a70a3438c68229e4906e6bce14974a9aee8 /tools/idevicedate.c | |
| parent | ba829e6f1a62bdad7866572d1e2cff1836ced742 (diff) | |
| download | libimobiledevice-bcced6c4f6a79e09ed3961632b2faf81fe873137.tar.gz libimobiledevice-bcced6c4f6a79e09ed3961632b2faf81fe873137.tar.bz2 | |
Fix attempts to detect Windows using _WIN32
Diffstat (limited to 'tools/idevicedate.c')
| -rw-r--r-- | tools/idevicedate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/idevicedate.c b/tools/idevicedate.c index d05f63e..31b0cf7 100644 --- a/tools/idevicedate.c +++ b/tools/idevicedate.c | |||
| @@ -33,7 +33,7 @@ | |||
| 33 | #if HAVE_LANGINFO_CODESET | 33 | #if HAVE_LANGINFO_CODESET |
| 34 | #include <langinfo.h> | 34 | #include <langinfo.h> |
| 35 | #endif | 35 | #endif |
| 36 | #ifndef WIN32 | 36 | #ifndef _WIN32 |
| 37 | #include <signal.h> | 37 | #include <signal.h> |
| 38 | #endif | 38 | #endif |
| 39 | 39 | ||
| @@ -43,7 +43,7 @@ | |||
| 43 | #ifdef _DATE_FMT | 43 | #ifdef _DATE_FMT |
| 44 | #define DATE_FMT_LANGINFO nl_langinfo (_DATE_FMT) | 44 | #define DATE_FMT_LANGINFO nl_langinfo (_DATE_FMT) |
| 45 | #else | 45 | #else |
| 46 | #ifdef WIN32 | 46 | #ifdef _WIN32 |
| 47 | #define DATE_FMT_LANGINFO "%a %b %#d %H:%M:%S %Z %Y" | 47 | #define DATE_FMT_LANGINFO "%a %b %#d %H:%M:%S %Z %Y" |
| 48 | #else | 48 | #else |
| 49 | #define DATE_FMT_LANGINFO "%a %b %e %H:%M:%S %Z %Y" | 49 | #define DATE_FMT_LANGINFO "%a %b %e %H:%M:%S %Z %Y" |
| @@ -104,7 +104,7 @@ int main(int argc, char *argv[]) | |||
| 104 | { NULL, 0, NULL, 0} | 104 | { NULL, 0, NULL, 0} |
| 105 | }; | 105 | }; |
| 106 | 106 | ||
| 107 | #ifndef WIN32 | 107 | #ifndef _WIN32 |
| 108 | signal(SIGPIPE, SIG_IGN); | 108 | signal(SIGPIPE, SIG_IGN); |
| 109 | #endif | 109 | #endif |
| 110 | /* parse cmdline args */ | 110 | /* parse cmdline args */ |
