Skip to content

Commit 07ff243

Browse files
committed
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>
1 parent bf6720d commit 07ff243

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/ldap/ldap.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
#ifdef PHP_WIN32
3939
#include <string.h>
4040
#include "config.w32.h"
41-
#define strdup _strdup
4241
#undef WINDOWS
4342
#undef strcasecmp
4443
#undef strncasecmp

win32/readdir.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
#include "php.h"
2+
13
#include <malloc.h>
24
#include <string.h>
35
#include <errno.h>
46

5-
#include "php.h"
67
#include "readdir.h"
78
#include "win32/ioutil.h"
89

0 commit comments

Comments
 (0)