Wrap php_random.h in C++ portability macros

Also remove portability headers. This goes against the existing
conventions of these files.
This commit is contained in:
Levi Morrison 2019-11-07 14:51:21 -07:00 committed by Levi Morrison
parent b9dfa12853
commit 4a55794b98
2 changed files with 4 additions and 2 deletions

View File

@ -20,8 +20,6 @@
#ifndef HRTIME_H
#define HRTIME_H
#include <Zend/zend_portability.h>
#define PHP_HRTIME_PLATFORM_POSIX 0
#define PHP_HRTIME_PLATFORM_WINDOWS 0
#define PHP_HRTIME_PLATFORM_APPLE 0

View File

@ -19,6 +19,8 @@
#ifndef PHP_RANDOM_H
#define PHP_RANDOM_H
BEGIN_EXTERN_C()
PHP_FUNCTION(random_bytes);
PHP_FUNCTION(random_int);
@ -48,6 +50,8 @@ extern PHPAPI int random_globals_id;
extern PHPAPI php_random_globals random_globals;
#endif
END_EXTERN_C()
#endif
/*