Skip to content

Commit

Permalink
Fix macro redifinition warnings in debug builds
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cmb69 committed Jun 29, 2020
1 parent bf6720d commit 07ff243
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion ext/ldap/ldap.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#ifdef PHP_WIN32
#include <string.h>
#include "config.w32.h"
#define strdup _strdup
#undef WINDOWS
#undef strcasecmp
#undef strncasecmp
Expand Down
3 changes: 2 additions & 1 deletion win32/readdir.c
Original file line number Diff line number Diff line change
@@ -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"

Expand Down

0 comments on commit 07ff243

Please sign in to comment.