Skip to content

Commit 33cee34

Browse files
committed
Replace win32/php_stdint.h by inttypes.h for PHP 8+
1 parent 3d3a21d commit 33cee34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pecl-compat/compat.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@
7676
# include <sys/stat.h>
7777
#endif
7878

79-
#ifdef PHP_WIN32
80-
#include <win32/php_stdint.h>
79+
#if defined(PHP_WIN32) && PHP_MAJOR_VERSION < 8
80+
# include <win32/php_stdint.h>
8181
#else
82-
#include <inttypes.h>
82+
# include <inttypes.h>
8383
#endif
8484

8585
#if ZEND_EXTENSION_API_NO >= PHP_5_6_X_API_NO

0 commit comments

Comments
 (0)