Skip to content

Commit

Permalink
PHP 8 compatibility Windows (#528)
Browse files Browse the repository at this point in the history
Use PHP_VERSION_ID instead of _MSC_VER to select the right headers. win32/php_stdint.h
was removed in PHP 8.0.0 and php_stdint.h file was removed in PHP 8.2.0 entirely:
https://github.com/php/php-src/blob/PHP-8.2/UPGRADING.INTERNALS#L26
  • Loading branch information
lifenglsf authored Jan 31, 2023
1 parent 6a58af6 commit 1eac9f8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions php_memcached_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
#include <ext/standard/basic_functions.h>

#ifdef PHP_WIN32
# if PHP_VERSION_ID >= 80000
# include "php_stdint.h"
#else
# include "win32/php_stdint.h"
#endif
# if PHP_VERSION_ID >= 80000
# include <stdint.h>
#else
# include "win32/php_stdint.h"
#endif
#else
/* Used to store the size of the block */
# if defined(HAVE_INTTYPES_H)
Expand Down

0 comments on commit 1eac9f8

Please sign in to comment.