- stricmp doesn't exist in *nix, use strcasecmp instead.
- setmode (for setting IO streams mode -- text, binary --) is useless in *nix world, so just define it as a dummy function.
Should fix build.

svn path=/trunk/; revision=66945
This commit is contained in:
Hermès Bélusca-Maïto 2015-03-29 00:52:49 +00:00
parent b258f29772
commit d8714d6ad9

View file

@ -8,9 +8,17 @@
* Hermès Bélusca - Maïto
*/
#include <fcntl.h>
#include <stdio.h>
#ifdef _WIN32
#include <fcntl.h>
#else
#define O_TEXT 0x4000
#define O_BINARY 0x8000
#define setmode(fd, mode) // This function is useless in *nix world.
#define stricmp strcasecmp
#endif
#define ARRAYSIZE(a) (sizeof(a) / sizeof((a)[0]))
void help(void)