Skip to content

Commit

Permalink
perl.h: Expand scope of cpp conditional
Browse files Browse the repository at this point in the history
This just doesn't bother with checking some locale-related stuff if not
paying attention to locales.
  • Loading branch information
khwilliamson committed Apr 29, 2021
1 parent d6dc73f commit 37fc041
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions perl.h
Expand Up @@ -1098,16 +1098,16 @@ Example usage:
# define USE_POSIX_2008_LOCALE
# endif
# endif
#endif

/* Microsoft documentation reads in the change log for VS 2015:
* "The localeconv function declared in locale.h now works correctly when
* per-thread locale is enabled. In previous versions of the library, this
* function would return the lconv data for the global locale, not the
* thread's locale."
*/
#if defined(WIN32) && defined(USE_THREAD_SAFE_LOCALE) && _MSC_VER < 1900
# define TS_W32_BROKEN_LOCALECONV
# if defined(WIN32) && defined(USE_THREAD_SAFE_LOCALE) && _MSC_VER < 1900
# define TS_W32_BROKEN_LOCALECONV
# endif
#endif

#include <setjmp.h>
Expand Down

0 comments on commit 37fc041

Please sign in to comment.