We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b495486 commit 906eae5Copy full SHA for 906eae5
apache2/modsecurity.h
@@ -128,9 +128,16 @@ typedef struct msc_parm msc_parm;
128
#include <direct.h>
129
/* Use ISO C++ conformant names for POSIX functions on Windows */
130
#ifdef _MSC_VER
131
+/* Only define if not already defined by APR or other headers */
132
+#ifndef strcasecmp
133
#define strcasecmp _stricmp
134
+#endif
135
+#ifndef strncasecmp
136
#define strncasecmp _strnicmp
137
138
+#ifndef chdir
139
#define chdir _chdir
140
141
/* Disable warnings about "unsafe" CRT functions (getenv, strcpy, etc.) */
142
/* These functions are safe in ModSecurity's usage and required for portability */
143
#pragma warning(disable: 4996)
0 commit comments