Arranged definitions to prevent double definition

- It is possible to define `strcasecmp` and
  `strncasecmp` twice if `__MINGW32__` is defined.
  However, the same definition is used if it's not.
  Therefore, I just moved it inside of the "if-defined"
  case. It removes the errors pertaining to that header.

- Additional compilation errors related to the filesystem
  implementation and POSIX definitions of constants still
  are brought up when compiling on Windows 10, MSYS2-mingw-w64
  with gcc.
This commit is contained in:
VermillionAzure 2017-03-06 00:11:25 -10:00
parent d152dd6237
commit b955dc2698

View file

@ -761,10 +761,10 @@
#define _CRT_SECURE_NO_WARNINGS 1
#define _CRT_NONSTDC_NO_DEPRECATE 1
#pragma warning(disable:4146) /* unary minus operator to unsigned type */
#define strcasecmp lstrcmpi
#define strncasecmp(s1, s2, n) lstrcmpi(s1, s2)
#ifdef __MINGW32__
#include <shlwapi.h>
#define strcasecmp lstrcmpi
#define strncasecmp(s1, s2, n) lstrcmpi(s1, s2)
#define strcasestr StrStrI
#define SHUT_RD 0
#define SHUT_WR 1