Skip to content

Use ZEND_API in zend_hrtime #13288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Zend/zend_hrtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
4 changes: 2 additions & 2 deletions Zend/zend_hrtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down