@@ -180,19 +180,22 @@ bool OSAtomicCompareAndSwap32Barrier( int32_t oldValue, int32_t newValue, volati
180
180
void OSMemoryBarrier ();
181
181
#endif // TARGET_OS_LINUX || TARGET_OS_BSD
182
182
183
+ #if TARGET_OS_LINUX || TARGET_OS_WIN32
184
+ #define strtod_l (a ,b ,locale ) strtod(a,b)
185
+ #define strtoul_l (a ,b ,c ,locale ) strtoul(a,b,c)
186
+ #define strtol_l (a ,b ,c ,locale ) strtol(a,b,c)
187
+
188
+ #define fprintf_l (a ,locale ,b ,...) fprintf(a, b, __VA_ARGS__)
189
+ #endif // TARGET_OS_LINUX || TARGET_OS_WIN32
190
+
183
191
#if TARGET_OS_LINUX
184
192
185
193
#define CF_PRIVATE extern __attribute__((visibility("hidden")))
186
194
#define __weak
187
195
188
- #define strtod_l (a ,b ,locale ) strtod(a,b)
189
- #define strtoul_l (a ,b ,c ,locale ) strtoul(a,b,c)
190
- #define strtol_l (a ,b ,c ,locale ) strtol(a,b,c)
191
196
#define strtoll_l (a ,b ,c ,locale ) strtoll(a,b,c)
192
197
#define strncasecmp_l (a , b , c , d ) strncasecmp(a, b, c)
193
198
194
- #define fprintf_l (a ,locale ,b ,...) fprintf(a, b, __VA_ARGS__)
195
-
196
199
#include <pthread.h>
197
200
198
201
#if TARGET_OS_ANDROID
@@ -346,16 +349,11 @@ CF_INLINE long long llabs(long long v) {
346
349
return v ;
347
350
}
348
351
349
- #define strtod_l (a ,b ,locale ) strtod(a,b)
350
- #define strtoul_l (a ,b ,c ,locale ) strtoul(a,b,c)
351
- #define strtol_l (a ,b ,c ,locale ) strtol(a,b,c)
352
352
#define strtoll_l (a ,b ,c ,locale ) _strtoi64(a,b,c)
353
353
#define strncasecmp (a , b , c ) _strnicmp(a, b, c)
354
354
#define strncasecmp_l (a , b , c , d ) _strnicmp(a, b, c)
355
355
#define snprintf _snprintf
356
356
357
- #define fprintf_l (a ,locale ,b ,...) fprintf(a, b, __VA_ARGS__)
358
-
359
357
#define sleep (x ) Sleep(1000*x)
360
358
361
359
#define issetugid () 0
0 commit comments