From a75e8d1fe6e43571b2add5da5db9eed02c69a8fc Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Sun, 29 Mar 2015 06:45:40 +0200 Subject: [PATCH] Drop this VC8+ check, since our bare minimum of required VC version is higher anyway, meaning that CRT warnings are always supported. --- main/main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main/main.c b/main/main.c index 2a808dd7c5b..a7f3bad31ee 100644 --- a/main/main.c +++ b/main/main.c @@ -1974,7 +1974,7 @@ static int php_register_extensions_bc(zend_module_entry *ptr, int count) } /* }}} */ -#if defined(PHP_WIN32) && _MSC_VER >= 1400 +#ifdef PHP_WIN32 static _invalid_parameter_handler old_invalid_parameter_handler; void dummy_invalid_parameter_handler( @@ -2023,7 +2023,7 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod #endif #ifdef PHP_WIN32 php_os = "WINNT"; -#if _MSC_VER >= 1400 + old_invalid_parameter_handler = _set_invalid_parameter_handler(dummy_invalid_parameter_handler); if (old_invalid_parameter_handler != NULL) { @@ -2032,7 +2032,6 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod /* Disable the message box for assertions.*/ _CrtSetReportMode(_CRT_ASSERT, 0); -#endif #else php_os = PHP_OS; #endif @@ -2412,7 +2411,7 @@ void php_module_shutdown(void) ts_free_id(core_globals_id); #endif -#if defined(PHP_WIN32) && defined(_MSC_VER) && (_MSC_VER >= 1400) +#ifdef PHP_WIN32 if (old_invalid_parameter_handler == NULL) { _set_invalid_parameter_handler(old_invalid_parameter_handler); }