Skip to content

Commit

Permalink
perl.h: Move #include to earlier
Browse files Browse the repository at this point in the history
The next commit will want this header's information to be available for
perl_langinfo.h.
  • Loading branch information
khwilliamson committed Feb 5, 2024
1 parent f20e698 commit 309cbda
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions perl.h
Expand Up @@ -1122,6 +1122,13 @@ violations are fatal.
# include <xlocale.h>
#endif

/* Even if not using locales, this header should be #included so as to #define
* some symbols which avoid #ifdefs to get things to compile. But make sure
* the macro it calls does nothing */
#undef PERL_LOCALE_TABLE_ENTRY
#define PERL_LOCALE_TABLE_ENTRY(name, call_back)
#include "locale_table.h"

#include "perl_langinfo.h" /* Needed for _NL_LOCALE_NAME */

/* =========================================================================
Expand Down Expand Up @@ -1159,15 +1166,6 @@ violations are fatal.
#define */
#endif

/* Even if not using locales, this header should be #included so as to #define
* some symbols which avoid #ifdefs to get things to compile. But make sure
* the macro it calls does nothing */
#ifndef USE_LOCALE
# undef PERL_LOCALE_TABLE_ENTRY
# define PERL_LOCALE_TABLE_ENTRY(name, call_back)
# include "locale_table.h"
#endif

/* XXX The Configure probe for categories must be updated when adding new
* categories here */

Expand Down

0 comments on commit 309cbda

Please sign in to comment.