Skip to content

Commit a4a7852

Browse files
committed
perl.h: #include locale_table.h even if NO_LOCALE
It defines some symbols which help in this circumstance, and others which would otherwise have to be #ifdef'd against in order to compile.
1 parent 51844f8 commit a4a7852

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

perl.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,6 +1159,15 @@ violations are fatal.
11591159
#define */
11601160
#endif
11611161

1162+
/* Even if not using locales, this header should be #included so as to #define
1163+
* some symbols which avoid #ifdefs to get things to compile. But make sure
1164+
* the macro it calls does nothing */
1165+
#ifndef USE_LOCALE
1166+
# undef PERL_LOCALE_TABLE_ENTRY
1167+
# define PERL_LOCALE_TABLE_ENTRY(name, call_back)
1168+
# include "locale_table.h"
1169+
#endif
1170+
11621171
/* XXX The Configure probe for categories must be updated when adding new
11631172
* categories here */
11641173

0 commit comments

Comments
 (0)