Skip to content

Commit d7ef25a

Browse files
crazywhaleccdixyes
authored andcommitted
Fix micro SAPI for 8.4 on Windows (#6)
1 parent b97f5f0 commit d7ef25a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

php_micro.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ here's original copyright notice
5252
BOOL php_win32_init_random_bytes(void);
5353
BOOL php_win32_shutdown_random_bytes(void);
5454
BOOL php_win32_ioutil_init(void);
55+
#if PHP_VERSION_ID < 80400
5556
void php_win32_init_gettimeofday(void);
57+
#endif
5658
#else
5759
# define php_select(m, r, w, e, t) select(m, r, w, e, t)
5860
# include <fcntl.h>
@@ -588,7 +590,9 @@ int main(int argc, char *argv[])
588590
php_win32_init_random_bytes();
589591
// php_win32_signal_ctrl_handler_init();
590592
php_win32_ioutil_init();
593+
#if PHP_VERSION_ID < 80400
591594
php_win32_init_gettimeofday();
595+
#endif
592596

593597
_fmode = _O_BINARY; /* sets default for file streams to binary */
594598
setmode(_fileno(stdin), O_BINARY); /* make the stdio mode be binary */

0 commit comments

Comments
 (0)