@@ -379,27 +379,27 @@ T _swift_strto(const char *nptr, char **endptr) {
379
379
}
380
380
381
381
#if defined(__OpenBSD__) || defined(_WIN32) || defined(__CYGWIN__) || defined(__HAIKU__)
382
- #define need_swift_strtod_l
382
+ #define NEED_SWIFT_STRTOD_L
383
383
#define strtod_l swift_strtod_l
384
- #define need_swift_strtof_l
384
+ #define NEED_SWIFT_STRTOF_L
385
385
#define strtof_l swift_strtof_l
386
- #define need_swift_strtold_l
386
+ #define NEED_SWIFT_STRTOLD_L
387
387
#define strtold_l swift_strtold_l
388
388
#elif defined(__ANDROID__)
389
389
#if __ANDROID_API__ < 21 // Introduced in Android API 21 - L
390
- #define need_swift_strtold_l
390
+ #define NEED_SWIFT_STRTOLD_L
391
391
#define strtold_l swift_strtold_l
392
392
#endif
393
393
394
394
#if __ANDROID_API__ < 26 // Introduced in Android API 26 - O
395
- #define need_swift_strtod_l
395
+ #define NEED_SWIFT_STRTOD_L
396
396
#define strtod_l swift_strtod_l
397
- #define need_swift_strtof_l
397
+ #define NEED_SWIFT_STRTOF_L
398
398
#define strtof_l swift_strtof_l
399
399
#endif
400
400
#endif
401
401
402
- #if defined(need_swift_strtod_l )
402
+ #if defined(NEED_SWIFT_STRTOD_L )
403
403
static double swift_strtod_l (const char *nptr, char **endptr, locale_t loc) {
404
404
#if defined(_WIN32)
405
405
return _strtod_l (nptr, endptr, getCLocale ());
@@ -411,7 +411,7 @@ static double swift_strtod_l(const char *nptr, char **endptr, locale_t loc) {
411
411
}
412
412
#endif
413
413
414
- #if defined(need_swift_strtof_l )
414
+ #if defined(NEED_SWIFT_STRTOF_L )
415
415
static float swift_strtof_l (const char *nptr, char **endptr, locale_t loc) {
416
416
#if defined(_WIN32)
417
417
return _strtof_l (nptr, endptr, getCLocale ());
@@ -423,7 +423,7 @@ static float swift_strtof_l(const char *nptr, char **endptr, locale_t loc) {
423
423
}
424
424
#endif
425
425
426
- #if defined(need_swift_strtold_l )
426
+ #if defined(NEED_SWIFT_STRTOLD_L )
427
427
static long double swift_strtold_l (const char *nptr, char **endptr,
428
428
locale_t loc) {
429
429
#if defined(_WIN32)
0 commit comments