mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
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:
parent
d152dd6237
commit
b955dc2698
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue