We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
extern "c" {}
1 parent 6dcc0b8 commit b9dfa12Copy full SHA for b9dfa12
ext/standard/hrtime.h
@@ -20,6 +20,8 @@
20
#ifndef HRTIME_H
21
#define HRTIME_H
22
23
+#include <Zend/zend_portability.h>
24
+
25
#define PHP_HRTIME_PLATFORM_POSIX 0
26
#define PHP_HRTIME_PLATFORM_WINDOWS 0
27
#define PHP_HRTIME_PLATFORM_APPLE 0
@@ -45,6 +47,8 @@
45
47
46
48
#define HRTIME_AVAILABLE (PHP_HRTIME_PLATFORM_POSIX || PHP_HRTIME_PLATFORM_WINDOWS || PHP_HRTIME_PLATFORM_APPLE || PHP_HRTIME_PLATFORM_HPUX || PHP_HRTIME_PLATFORM_AIX)
49
50
+BEGIN_EXTERN_C()
51
52
typedef uint64_t php_hrtime_t;
53
54
PHPAPI php_hrtime_t php_hrtime_current(void);
@@ -53,4 +57,6 @@ PHP_MINIT_FUNCTION(hrtime);
57
58
PHP_FUNCTION(hrtime);
55
59
60
+END_EXTERN_C()
61
56
62
#endif /* HRTIME_H */
0 commit comments