From ee77de5dc0ea782ebdcc161c447f634952599d98 Mon Sep 17 00:00:00 2001 From: lfeng Date: Tue, 13 Dec 2022 12:11:19 +0800 Subject: [PATCH 1/3] PHP 8 compatibility Windows --- php_memcached_private.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/php_memcached_private.h b/php_memcached_private.h index b4b1115b..c02bb6d7 100644 --- a/php_memcached_private.h +++ b/php_memcached_private.h @@ -48,11 +48,11 @@ #include #ifdef PHP_WIN32 - # if PHP_VERSION_ID >= 80000 - # include "php_stdint.h" -#else -# include "win32/php_stdint.h" -#endif + #if (defined(_MSC_VER) && _MSC_VER<=1920) + #include "win32/php_stdint.h" + #else + # include "" + #endif #else /* Used to store the size of the block */ # if defined(HAVE_INTTYPES_H) From f05d4fa86dbf8e6ca5e0a45e6984cf0e32304468 Mon Sep 17 00:00:00 2001 From: lfeng Date: Thu, 22 Dec 2022 18:28:50 +0800 Subject: [PATCH 2/3] PHP 8 compatibility Windows --- php_memcached_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php_memcached_private.h b/php_memcached_private.h index c02bb6d7..3d73cdf9 100644 --- a/php_memcached_private.h +++ b/php_memcached_private.h @@ -51,7 +51,7 @@ #if (defined(_MSC_VER) && _MSC_VER<=1920) #include "win32/php_stdint.h" #else - # include "" + #include #endif #else /* Used to store the size of the block */ From 8caadef528eeb7582aa390177b0dded92ac2cf29 Mon Sep 17 00:00:00 2001 From: LeoLee Date: Mon, 30 Jan 2023 20:24:39 +0800 Subject: [PATCH 3/3] PHP_VERSION_ID instead of _MSC_VER --- php_memcached_private.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/php_memcached_private.h b/php_memcached_private.h index 3d73cdf9..48f1dfab 100644 --- a/php_memcached_private.h +++ b/php_memcached_private.h @@ -48,11 +48,11 @@ #include #ifdef PHP_WIN32 - #if (defined(_MSC_VER) && _MSC_VER<=1920) - #include "win32/php_stdint.h" - #else - #include - #endif + # if PHP_VERSION_ID >= 80000 + # include + #else + # include "win32/php_stdint.h" + #endif #else /* Used to store the size of the block */ # if defined(HAVE_INTTYPES_H)