mirror of
https://github.com/reactos/reactos.git
synced 2026-06-08 17:02:56 +08:00
[CAT]
- 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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user