mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Fix macro redifinition warnings in debug builds
MSVC considers these warnings[1] to be severe (level 1), so we better fix the respective code. [1] <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4005?view=vs-2019>
This commit is contained in:
@@ -38,7 +38,6 @@
|
||||
#ifdef PHP_WIN32
|
||||
#include <string.h>
|
||||
#include "config.w32.h"
|
||||
#define strdup _strdup
|
||||
#undef WINDOWS
|
||||
#undef strcasecmp
|
||||
#undef strncasecmp
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
#include "php.h"
|
||||
|
||||
#include <malloc.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "php.h"
|
||||
#include "readdir.h"
|
||||
#include "win32/ioutil.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user