]> granicus.if.org Git - php/commitdiff
Use __forceinline under Win32 (inlining under Win32 gives roughly 30% performance
authorZeev Suraski <zeev@php.net>
Fri, 24 Dec 1999 21:27:55 +0000 (21:27 +0000)
committerZeev Suraski <zeev@php.net>
Fri, 24 Dec 1999 21:27:55 +0000 (21:27 +0000)
increase)

Zend/zend_config.w32.h

index 08fe908c5b4021d6897fb063f8dfb5aa2aba11e3..d9b1bfc409fa168f310b8237070b10877656727c 100644 (file)
@@ -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