summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-07-12 15:56:20 -0600
committerKarl Williamson <khw@cpan.org>2022-07-12 15:58:22 -0600
commit12f1a329cdc6653c42692c6f74c56e64fd4c3933 (patch)
tree0d8b481dedb103eb477cec5a44c0c61ae8eb9ef6 /embed.h
parentf052c885e6f8bee5243e4c7f2cca2468bd78a8df (diff)
downloadperl-12f1a329cdc6653c42692c6f74c56e64fd4c3933.tar.gz
setlocale_failure_panic_i only on non-threaded currently
Diffstat (limited to 'embed.h')
-rw-r--r--embed.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/embed.h b/embed.h
index 42e97b2792..38efe01d1e 100644
--- a/embed.h
+++ b/embed.h
@@ -1680,9 +1680,11 @@
#define new_numeric(a) S_new_numeric(aTHX_ a)
#define restore_switched_locale(a,b) S_restore_switched_locale(aTHX_ a,b)
#define set_numeric_radix(a) S_set_numeric_radix(aTHX_ a)
-#define setlocale_failure_panic_i(a,b,c,d,e) S_setlocale_failure_panic_i(aTHX_ a,b,c,d,e)
#define stdize_locale(a) S_stdize_locale(aTHX_ a)
#define switch_category_locale_to_template(a,b,c) S_switch_category_locale_to_template(aTHX_ a,b,c)
+# if defined(USE_LOCALE_THREADS)
+#define setlocale_failure_panic_i(a,b,c,d,e) S_setlocale_failure_panic_i(aTHX_ a,b,c,d,e)
+# endif
# if defined(USE_POSIX_2008_LOCALE)
#define emulate_setlocale_i(a,b) S_emulate_setlocale_i(aTHX_ a,b)
#define my_querylocale_i(a) S_my_querylocale_i(aTHX_ a)