Skip to content

Commit 4a55794

Browse files
committed
Wrap php_random.h in C++ portability macros
Also remove portability headers. This goes against the existing conventions of these files.
1 parent b9dfa12 commit 4a55794

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ext/standard/hrtime.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#ifndef HRTIME_H
2121
#define HRTIME_H
2222

23-
#include <Zend/zend_portability.h>
24-
2523
#define PHP_HRTIME_PLATFORM_POSIX 0
2624
#define PHP_HRTIME_PLATFORM_WINDOWS 0
2725
#define PHP_HRTIME_PLATFORM_APPLE 0

ext/standard/php_random.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#ifndef PHP_RANDOM_H
2020
#define PHP_RANDOM_H
2121

22+
BEGIN_EXTERN_C()
23+
2224
PHP_FUNCTION(random_bytes);
2325
PHP_FUNCTION(random_int);
2426

@@ -48,6 +50,8 @@ extern PHPAPI int random_globals_id;
4850
extern PHPAPI php_random_globals random_globals;
4951
#endif
5052

53+
END_EXTERN_C()
54+
5155
#endif
5256

5357
/*

0 commit comments

Comments
 (0)