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.
2 parents e19f0e8 + b9dfa12 commit 6ddb381Copy full SHA for 6ddb381
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