Skip to content

Commit

Permalink
XXX perl.h maybe drop
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed Nov 17, 2023
1 parent 2c19d53 commit 17eed8a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions perl.h
Expand Up @@ -1253,6 +1253,7 @@ typedef enum {
# define USE_THREAD_SAFE_LOCALE
# else
# define EMULATE_THREAD_SAFE_LOCALES
# undef USE_POSIX_2008_LOCALE
# endif
# endif

Expand Down Expand Up @@ -7205,11 +7206,16 @@ the plain locale pragma without a parameter (S<C<use locale>>) is in effect.
} \
} STMT_END
# endif

# ifdef EMULATE_THREAD_SAFE_LOCALES
# define LOCALE_TERM_THREAD_SAFE_LOCALE_EMULATION_ NOOP
# else
# define LOCALE_TERM_THREAD_SAFE_LOCALE_EMULATION_ NOOP
# endif
# define LOCALE_INIT MUTEX_INIT(&PL_locale_mutex)
# define LOCALE_TERM STMT_START { \
LOCALE_TERM_POSIX_2008_; \
MUTEX_DESTROY(&PL_locale_mutex); \
# define LOCALE_TERM STMT_START { \
LOCALE_TERM_POSIX_2008_; \
LOCALE_TERM_THREAD_SAFE_LOCALE_EMULATION_;\
MUTEX_DESTROY(&PL_locale_mutex); \
} STMT_END
# if 0
/*dTHX;*/\
Expand Down

0 comments on commit 17eed8a

Please sign in to comment.