Skip to content

Commit fd0e67e

Browse files
committed
perl.h: Make sure USE_LOCALE is off if no locales available
It shouldn't be getting set anyway, but this makes it clear, and also makes sure someone hasn't tried to define it with Configure
1 parent 7296a95 commit fd0e67e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

makedef.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ BEGIN
145145
elsif ($define{HAS_SETLOCALE}) {
146146
$define{USE_LOCALE} = 1;
147147
}
148+
else {
149+
undef $define{USE_LOCALE};
150+
}
148151
}
149152

150153
# https://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B#Internal_version_numbering

perl.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,8 @@ violations are fatal.
11751175
# define USE_LOCALE
11761176
# elif defined(HAS_SETLOCALE)
11771177
# define USE_LOCALE
1178+
# else
1179+
# undef USE_LOCALE
11781180
# endif
11791181
#endif
11801182

0 commit comments

Comments
 (0)