summaryrefslogtreecommitdiffstats
path: root/3rd_party/libsrp6a-sha512/t_truerand.c
diff options
context:
space:
mode:
authorGravatar Duncan Ogilvie2024-11-27 12:01:18 +0100
committerGravatar Nikias Bassen2024-11-29 14:36:34 +0100
commitbcced6c4f6a79e09ed3961632b2faf81fe873137 (patch)
tree71bb6a70a3438c68229e4906e6bce14974a9aee8 /3rd_party/libsrp6a-sha512/t_truerand.c
parentba829e6f1a62bdad7866572d1e2cff1836ced742 (diff)
downloadlibimobiledevice-bcced6c4f6a79e09ed3961632b2faf81fe873137.tar.gz
libimobiledevice-bcced6c4f6a79e09ed3961632b2faf81fe873137.tar.bz2
Fix attempts to detect Windows using _WIN32
Diffstat (limited to '3rd_party/libsrp6a-sha512/t_truerand.c')
-rw-r--r--3rd_party/libsrp6a-sha512/t_truerand.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/3rd_party/libsrp6a-sha512/t_truerand.c b/3rd_party/libsrp6a-sha512/t_truerand.c
index f995ed7..cd27d0d 100644
--- a/3rd_party/libsrp6a-sha512/t_truerand.c
+++ b/3rd_party/libsrp6a-sha512/t_truerand.c
@@ -54,7 +54,7 @@
54 54
55#include "t_defines.h" 55#include "t_defines.h"
56 56
57#ifdef WIN32 57#ifdef _WIN32
58 58
59# ifdef CRYPTOLIB 59# ifdef CRYPTOLIB
60 60
@@ -69,7 +69,7 @@ raw_truerand()
69 return truerand(); 69 return truerand();
70} 70}
71 71
72# else /* !CRYPTOLIB && WIN32 */ 72# else /* !CRYPTOLIB && _WIN32 */
73 73
74#include <windows.h> 74#include <windows.h>
75#include <wtypes.h> 75#include <wtypes.h>
@@ -128,7 +128,7 @@ raw_truerand() {
128 128
129# endif /* CRYPTOLIB */ 129# endif /* CRYPTOLIB */
130 130
131#else /* !WIN32 */ 131#else /* !_WIN32 */
132 132
133#include <signal.h> 133#include <signal.h>
134#include <setjmp.h> 134#include <setjmp.h>
@@ -238,4 +238,4 @@ raw_n_truerand(int n)
238 return v % n; 238 return v % n;
239} 239}
240 240
241#endif /* !CRYPTOLIB || !WIN32 */ 241#endif /* !CRYPTOLIB || !_WIN32 */