]> granicus.if.org Git - php/commitdiff
Drop old VC support in Zend Engine, this also kills the remaining MessageBox fix...
authorKalle Sommer Nielsen <kalle@php.net>
Sun, 29 Mar 2015 05:10:39 +0000 (07:10 +0200)
committerKalle Sommer Nielsen <kalle@php.net>
Sun, 29 Mar 2015 05:10:39 +0000 (07:10 +0200)
Zend/zend_config.w32.h
Zend/zend_float.h
Zend/zend_operators.h
Zend/zend_portability.h
Zend/zend_virtual_cwd.c

index da32b13a0bc4f5966b3039cbc694a130cdd5e095..10d4a0b06e1a5a036088a144bb496d5058bd95f3 100644 (file)
@@ -50,9 +50,6 @@ typedef unsigned int uint;
 #if _MSC_VER < 1900
 #define snprintf _snprintf
 #endif
-#if _MSC_VER < 1500
-#define vsnprintf _vsnprintf
-#endif
 #define strcasecmp(s1, s2) stricmp(s1, s2)
 #define strncasecmp(s1, s2, n) strnicmp(s1, s2, n)
 #define zend_isinf(a)  ((_fpclass(a) == _FPCLASS_PINF) || (_fpclass(a) == _FPCLASS_NINF))
@@ -66,7 +63,7 @@ typedef unsigned int uint;
  */
 #ifdef ZEND_WIN32_FORCE_INLINE
 /* _ALLOW_KEYWORD_MACROS is only relevant for C++ */
-# if (_MSC_VER >= 1700) && !defined(_ALLOW_KEYWORD_MACROS)
+# ifndef _ALLOW_KEYWORD_MACROS
 #  define _ALLOW_KEYWORD_MACROS
 # endif
 # undef inline
@@ -85,17 +82,6 @@ typedef unsigned int uint;
 #define ZEND_DLEXPORT          __declspec(dllexport)
 #define ZEND_DLIMPORT          __declspec(dllimport)
 
-/* 0x00200000L is MB_SERVICE_NOTIFICATION, which is only supported under Windows NT
- * (and requires _WIN32_WINNT to be defined, which prevents the resulting executable
- * from running under Windows 9x
- * Windows 9x should silently ignore it, so it's being used here directly
- */
-#ifndef MB_SERVICE_NOTIFICATION
-#define        MB_SERVICE_NOTIFICATION         0x00200000L
-#endif
-
-#define ZEND_SERVICE_MB_STYLE          (MB_TOPMOST|MB_SERVICE_NOTIFICATION)
-
 #endif /* ZEND_CONFIG_W32_H */
 
 /*
index 14cdbb265eb711d0653925b616b58d073085c452..2ba3eb7fe7bfea6320c95414c6115c797e1ad949 100644 (file)
@@ -76,17 +76,7 @@ END_EXTERN_C()
 
 /* MSVC detection (MSVC people usually don't use autoconf) */
 #if defined(_MSC_VER) && !defined(_WIN64)
-# if _MSC_VER >= 1500
-   /* Visual C++ 2008 or higher, supports _controlfp_s */
 #  define HAVE__CONTROLFP_S
-# else
-   /* Visual C++ (up to 2005), supports _controlfp */
-#  define HAVE__CONTROLFP
-# endif /* MSC_VER >= 1500 */
-  /* Tell MSVC optimizer that we access FP environment */
-# if _MSC_VER >= 1500
-#  pragma fenv_access (on)
-# endif
 #endif /* _MSC_VER */
 
 #ifdef HAVE__CONTROLFP_S
index 962b453bc2b32b96bd2f802f96461bb609d36d37..9e937eba3b42f2ea9908f23a1e51f65b449d411c 100644 (file)
@@ -416,10 +416,8 @@ ZEND_API void ZEND_FASTCALL zend_locale_sprintf_double(zval *op ZEND_FILE_LINE_D
                convert_scalar_to_number(pzv);                                  \
        }
 
-#if HAVE_SETLOCALE && defined(ZEND_WIN32) && !defined(ZTS) && defined(_MSC_VER) && (_MSC_VER >= 1400)
-/* This is performance improvement of tolower() on Windows and VC2005
- * Gives 10-18% on bench.php
- */
+#if HAVE_SETLOCALE && defined(ZEND_WIN32) && !defined(ZTS) && defined(_MSC_VER)
+/* This performance improvement of tolower() on Windows gives 10-18% on bench.php */
 #define ZEND_USE_TOLOWER_L 1
 #endif
 
index 05ef0df53ef64afaeef7a295a5f299bdd00f2176..eca9c83f89f896620552fa9eb6f884b23806fb4e 100644 (file)
@@ -198,7 +198,7 @@ char *alloca();
 
 #if ZEND_GCC_VERSION >= 3001 || __has_attribute(deprecated)
 # define ZEND_ATTRIBUTE_DEPRECATED  __attribute__((deprecated))
-#elif defined(ZEND_WIN32) && defined(_MSC_VER) && _MSC_VER >= 1300
+#elif defined(ZEND_WIN32)
 # define ZEND_ATTRIBUTE_DEPRECATED  __declspec(deprecated)
 #else
 # define ZEND_ATTRIBUTE_DEPRECATED
@@ -214,7 +214,7 @@ char *alloca();
 
 #if defined(__GNUC__) && ZEND_GCC_VERSION >= 3004 && defined(__i386__)
 # define ZEND_FASTCALL __attribute__((fastcall))
-#elif defined(_MSC_VER) && defined(_M_IX86) && _MSC_VER <= 1700
+#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
index 85e40bb9644ca26e302b62f29aa5a567b51157c9..70b42657a4eae14ae23e60a64f6cda65a8ca4c72 100644 (file)
@@ -1191,11 +1191,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
 
        if (path_length == 0 || path_length >= MAXPATHLEN-1) {
 #ifdef TSRM_WIN32
-# if _MSC_VER < 1300
-               errno = EINVAL;
-# else
                _set_errno(EINVAL);
-# endif
 #else
                errno = EINVAL;
 #endif