]> granicus.if.org Git - php/commitdiff
improved the ZEND_FASTCALL convention for vc12+
authorAnatol Belski <ab@php.net>
Tue, 4 Nov 2014 09:07:44 +0000 (10:07 +0100)
committerAnatol Belski <ab@php.net>
Tue, 4 Nov 2014 09:07:44 +0000 (10:07 +0100)
Zend/zend_portability.h

index 1705965c6be59fe32b258c932a95de98261ba4a8..c159fdc77b417aa61a945f9d150e60f6a66dff61 100644 (file)
@@ -196,8 +196,10 @@ char *alloca();
 
 #if defined(__GNUC__) && ZEND_GCC_VERSION >= 3004 && defined(__i386__)
 # define ZEND_FASTCALL __attribute__((fastcall))
-#elif defined(_MSC_VER) && defined(_M_IX86)
+#elif defined(_MSC_VER) && defined(_M_IX86) && _MSC_VER <= 1700
 # define ZEND_FASTCALL __fastcall
+#elif defined(_MSC_VER) && _MSC_VER >= 1800
+# define ZEND_FASTCALL __vectorcall
 #else
 # define ZEND_FASTCALL
 #endif