This commit is contained in:
Bob Weinand 2024-03-17 03:17:15 +01:00
commit 6f49474542
2 changed files with 4 additions and 4 deletions

View File

@ -31,13 +31,13 @@
# define WIN32_LEAN_AND_MEAN
double zend_hrtime_timer_scale = .0;
ZEND_API double zend_hrtime_timer_scale = .0;
#elif ZEND_HRTIME_PLATFORM_APPLE
# include <mach/mach_time.h>
# include <string.h>
mach_timebase_info_data_t zend_hrtime_timerlib_info = {
ZEND_API mach_timebase_info_data_t zend_hrtime_timerlib_info = {
.numer = 0,
.denom = 1,
};

View File

@ -60,13 +60,13 @@ BEGIN_EXTERN_C()
#if ZEND_HRTIME_PLATFORM_WINDOWS
extern double zend_hrtime_timer_scale;
ZEND_API extern double zend_hrtime_timer_scale;
#elif ZEND_HRTIME_PLATFORM_APPLE
# include <mach/mach_time.h>
# include <string.h>
extern mach_timebase_info_data_t zend_hrtime_timerlib_info;
ZEND_API extern mach_timebase_info_data_t zend_hrtime_timerlib_info;
#endif