summaryrefslogtreecommitdiff
path: root/main/php_reentrancy.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/php_reentrancy.h')
-rw-r--r--main/php_reentrancy.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/php_reentrancy.h b/main/php_reentrancy.h
index bbbe0343ab..8a329f14f5 100644
--- a/main/php_reentrancy.h
+++ b/main/php_reentrancy.h
@@ -49,6 +49,8 @@
#undef HAVE_GMTIME_R
#endif
+BEGIN_EXTERN_C()
+
#if defined(HAVE_POSIX_READDIR_R)
#define php_readdir_r readdir_r
#else
@@ -114,6 +116,8 @@ PHPAPI int php_rand_r(unsigned int *seed);
#define php_rand_r rand_r
#endif
+END_EXTERN_C()
+
#if !defined(ZTS)
#undef PHP_NEED_REENTRANCY
#endif