diff options
author | Hartmut Holzgraefe <hholzgra@php.net> | 2004-02-20 08:04:30 +0000 |
---|---|---|
committer | Hartmut Holzgraefe <hholzgra@php.net> | 2004-02-20 08:04:30 +0000 |
commit | b8f7d9f9f5c44d2100aa9691cac1838f57cbfb40 (patch) | |
tree | 914210864d6bf78c9a7efda71ba6d369a2fb38eb /main/php_reentrancy.h | |
parent | 1727c6a2bb0dec1635b9da90f88308effb54ebb2 (diff) | |
download | php-git-b8f7d9f9f5c44d2100aa9691cac1838f57cbfb40.tar.gz |
wrap all PHPAPI prototypes into BEGIN_EXTERN_C/END_EXTERN_C blocks
(else they won't be usable from C++ extensions)
Diffstat (limited to 'main/php_reentrancy.h')
-rw-r--r-- | main/php_reentrancy.h | 4 |
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 |