mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-30 08:51:03 +00:00
Support building natively on Windows
When building for Windows using a native toolchain (i.e. not MinGW or MSYS), `<unistd.h>` is not available. Include `<io.h>` instead and define `strcasecmp`.
This commit is contained in:
parent
d27af6af10
commit
92c14d194f
1 changed files with 5 additions and 0 deletions
|
@ -38,7 +38,12 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#else
|
||||||
|
#include <io.h>
|
||||||
|
#define strcasecmp _stricmp
|
||||||
|
#endif
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#ifdef __MINGW__
|
#ifdef __MINGW__
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue