We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f07ffd commit b495486Copy full SHA for b495486
apache2/modsecurity.h
@@ -126,6 +126,15 @@ typedef struct msc_parm msc_parm;
126
127
#ifdef WIN32
128
#include <direct.h>
129
+/* Use ISO C++ conformant names for POSIX functions on Windows */
130
+#ifdef _MSC_VER
131
+#define strcasecmp _stricmp
132
+#define strncasecmp _strnicmp
133
+#define chdir _chdir
134
+/* Disable warnings about "unsafe" CRT functions (getenv, strcpy, etc.) */
135
+/* These functions are safe in ModSecurity's usage and required for portability */
136
+#pragma warning(disable: 4996)
137
+#endif
138
#else
139
#include <sys/types.h>
140
#include <unistd.h>
0 commit comments