mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 07:56:59 +00: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:
parent
b258f29772
commit
d8714d6ad9
1 changed files with 9 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue