diff --git a/perl.h b/perl.h index 2ab6a88aca8f..dbe06153e7cf 100644 --- a/perl.h +++ b/perl.h @@ -6663,7 +6663,9 @@ the plain locale pragma without a parameter (S>) is in effect. || (defined(HAS_MBTOWC) && ! defined(HAS_MBRTOWC)) \ || (defined(HAS_WCTOMB) && ! defined(HAS_WCRTOMB)))) -# ifdef USE_POSIX_2008_LOCALE +# ifndef USE_POSIX_2008_LOCALE +# define LOCALE_TERM_POSIX_2008_ NOOP +# else /* We have a locale object holding the 'C' locale for Posix 2008 */ # define LOCALE_TERM_POSIX_2008_ \ STMT_START { \ @@ -6675,8 +6677,6 @@ the plain locale pragma without a parameter (S>) is in effect. PL_C_locale_obj = (locale_t) NULL; \ } \ } STMT_END -# else -# define LOCALE_TERM_POSIX_2008_ NOOP # endif # define LOCALE_INIT STMT_START { \