summaryrefslogtreecommitdiff
path: root/Zend/zend.h
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-02-10 17:03:53 +0000
committerAndi Gutmans <andi@php.net>2000-02-10 17:03:53 +0000
commitbc5c9d8d7b0a32e6d716141c0ff2d7f5015c4658 (patch)
tree8b28c846ebb36bdf6d3ce3a087be70ba479c17f8 /Zend/zend.h
parent945e9c3f2098685e2960b825b95737843a356581 (diff)
downloadphp-git-bc5c9d8d7b0a32e6d716141c0ff2d7f5015c4658.tar.gz
- Finally beautify those WIN32|WINNT checks
Diffstat (limited to 'Zend/zend.h')
-rw-r--r--Zend/zend.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/Zend/zend.h b/Zend/zend.h
index 94e9cc0f7f..00e4a67d97 100644
--- a/Zend/zend.h
+++ b/Zend/zend.h
@@ -37,7 +37,9 @@
* general definitions
*/
-#if (defined(WINNT) && WINNT) || (defined(WIN32) && WIN32)
+#define ZEND_WIN32 ((defined(WINNT) && WINNT) || (defined(WIN32) && WIN32))
+
+#if ZEND_WIN32
# include "zend_config.w32.h"
#else
# include "zend_config.h"
@@ -63,7 +65,7 @@
# define DL_FETCH_SYMBOL dlsym
# define DL_HANDLE void *
# define ZEND_EXTENSIONS_SUPPORT 1
-#elif (WIN32||WINNT)
+#elif (ZEND_WIN32)
# define DL_LOAD(libname) LoadLibrary(libname)
# define DL_FETCH_SYMBOL GetProcAddress
# define DL_UNLOAD FreeLibrary
@@ -350,7 +352,7 @@ END_EXTERN_C()
#define ZEND_MAX_RESERVED_RESOURCES 1
-#if (WINNT|WIN32)
+#if (ZEND_WIN32)
/* Only use this macro if you know for sure that all of the switches values
are covered by its case statements */
#define EMPTY_SWITCH_DEFAULT_CASE() \