summaryrefslogtreecommitdiff
path: root/reentr.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-12-13 19:07:04 -0700
committerKarl Williamson <khw@cpan.org>2017-12-13 19:14:33 -0700
commit59eb8be1443b97df4c7886794cd12918a376321a (patch)
tree7028642cfa3bd11cbe4a56debb4708bc68632fc7 /reentr.h
parent68b33022701d69a0f1026ec8e24018c6faeeda64 (diff)
downloadperl-59eb8be1443b97df4c7886794cd12918a376321a.tar.gz
Add PERL_REENTRANT for XS modules
This allows them to get the reentrant versions of libc functions automatically. Previously if they wanted to do this, they had to declare themselves (shudder) as PERL_CORE or PERL_EXT.
Diffstat (limited to 'reentr.h')
-rw-r--r--reentr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/reentr.h b/reentr.h
index b220b1ee53..6d085aa7dd 100644
--- a/reentr.h
+++ b/reentr.h
@@ -23,7 +23,7 @@
*/
#ifndef PERL_REENTR_API
-# if defined(PERL_CORE) || defined(PERL_EXT)
+# if defined(PERL_CORE) || defined(PERL_EXT) || defined(PERL_REENTRANT)
# define PERL_REENTR_API 1
# else
# define PERL_REENTR_API 0