summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/hrtime.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/standard/hrtime.h b/ext/standard/hrtime.h
index 7ec36dadc1..1ad9ff3f41 100644
--- a/ext/standard/hrtime.h
+++ b/ext/standard/hrtime.h
@@ -18,6 +18,8 @@
#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
@@ -43,6 +45,8 @@
#define HRTIME_AVAILABLE (PHP_HRTIME_PLATFORM_POSIX || PHP_HRTIME_PLATFORM_WINDOWS || PHP_HRTIME_PLATFORM_APPLE || PHP_HRTIME_PLATFORM_HPUX || PHP_HRTIME_PLATFORM_AIX)
+BEGIN_EXTERN_C()
+
typedef uint64_t php_hrtime_t;
PHPAPI php_hrtime_t php_hrtime_current(void);
@@ -51,4 +55,6 @@ PHP_MINIT_FUNCTION(hrtime);
PHP_FUNCTION(hrtime);
+END_EXTERN_C()
+
#endif /* HRTIME_H */