mirror of
https://github.com/php/php-src.git
synced 2025-01-26 05:34:32 +08:00
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:
parent
b9dfa12853
commit
4a55794b98
@ -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
|
||||
|
@ -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
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user