Skip to content

Commit e469ffb

Browse files
committed
upcase need_* preprocessor variables
1 parent b9c16d2 commit e469ffb

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

stdlib/public/stubs/Stubs.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -379,27 +379,27 @@ T _swift_strto(const char *nptr, char **endptr) {
379379
}
380380

381381
#if defined(__OpenBSD__) || defined(_WIN32) || defined(__CYGWIN__) || defined(__HAIKU__)
382-
#define need_swift_strtod_l
382+
#define NEED_SWIFT_STRTOD_L
383383
#define strtod_l swift_strtod_l
384-
#define need_swift_strtof_l
384+
#define NEED_SWIFT_STRTOF_L
385385
#define strtof_l swift_strtof_l
386-
#define need_swift_strtold_l
386+
#define NEED_SWIFT_STRTOLD_L
387387
#define strtold_l swift_strtold_l
388388
#elif defined(__ANDROID__)
389389
#if __ANDROID_API__ < 21 // Introduced in Android API 21 - L
390-
#define need_swift_strtold_l
390+
#define NEED_SWIFT_STRTOLD_L
391391
#define strtold_l swift_strtold_l
392392
#endif
393393

394394
#if __ANDROID_API__ < 26 // Introduced in Android API 26 - O
395-
#define need_swift_strtod_l
395+
#define NEED_SWIFT_STRTOD_L
396396
#define strtod_l swift_strtod_l
397-
#define need_swift_strtof_l
397+
#define NEED_SWIFT_STRTOF_L
398398
#define strtof_l swift_strtof_l
399399
#endif
400400
#endif
401401

402-
#if defined(need_swift_strtod_l)
402+
#if defined(NEED_SWIFT_STRTOD_L)
403403
static double swift_strtod_l(const char *nptr, char **endptr, locale_t loc) {
404404
#if defined(_WIN32)
405405
return _strtod_l(nptr, endptr, getCLocale());
@@ -411,7 +411,7 @@ static double swift_strtod_l(const char *nptr, char **endptr, locale_t loc) {
411411
}
412412
#endif
413413

414-
#if defined(need_swift_strtof_l)
414+
#if defined(NEED_SWIFT_STRTOF_L)
415415
static float swift_strtof_l(const char *nptr, char **endptr, locale_t loc) {
416416
#if defined(_WIN32)
417417
return _strtof_l(nptr, endptr, getCLocale());
@@ -423,7 +423,7 @@ static float swift_strtof_l(const char *nptr, char **endptr, locale_t loc) {
423423
}
424424
#endif
425425

426-
#if defined(need_swift_strtold_l)
426+
#if defined(NEED_SWIFT_STRTOLD_L)
427427
static long double swift_strtold_l(const char *nptr, char **endptr,
428428
locale_t loc) {
429429
#if defined(_WIN32)

0 commit comments

Comments
 (0)