mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 15:31:14 +00:00
Support building natively on Windows (#51)
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
6e05e1e65e
1 changed files with 5 additions and 0 deletions
|
@ -38,7 +38,12 @@
|
|||
#endif
|
||||
|
||||
#include <signal.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#include <io.h>
|
||||
#define strcasecmp _stricmp
|
||||
#endif
|
||||
#include <ctype.h>
|
||||
|
||||
#ifdef __MINGW__
|
||||
|
|
Loading…
Reference in a new issue