summaryrefslogtreecommitdiff
path: root/Zend/zend_config.w32.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-12-24 21:27:55 +0000
committerZeev Suraski <zeev@php.net>1999-12-24 21:27:55 +0000
commite25e3f092a5d7bc87085d2240d0f5b49041f0f22 (patch)
treedff5d7ba17c3a3fe4d71e6bcc188b9cbfcec5909 /Zend/zend_config.w32.h
parent735efc17f308f2f80129581e2a8d320df3e1aed7 (diff)
downloadphp-git-e25e3f092a5d7bc87085d2240d0f5b49041f0f22.tar.gz
Use __forceinline under Win32 (inlining under Win32 gives roughly 30% performance
increase)
Diffstat (limited to 'Zend/zend_config.w32.h')
-rw-r--r--Zend/zend_config.w32.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Zend/zend_config.w32.h b/Zend/zend_config.w32.h
index 08fe908c5b..d9b1bfc409 100644
--- a/Zend/zend_config.w32.h
+++ b/Zend/zend_config.w32.h
@@ -48,9 +48,10 @@ typedef unsigned int uint;
#define zend_sprintf sprintf
-/* Visual C++ doesn't really work with inline for C */
-#define inline
-
+/* This will cause the compilation process to be MUCH longer, but will generate
+ * a much quicker PHP binary
+ */
+#define inline __forceinline
#define DL_LOAD(libname) LoadLibrary(libname)
#define DL_FETCH_SYMBOL GetProcAddress