Fix DJGPP build with GCC 4.4.2
This commit is contained in:
parent
9ed87aece7
commit
7ccca29f1d
@ -46,7 +46,7 @@
|
|||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <gshare.h>
|
#include <gshare.h>
|
||||||
#if !defined(__UNIX__)
|
#if !defined(__UNIX__) || defined(__DJGPP__)
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#endif
|
#endif
|
||||||
#include <gdefs.h>
|
#include <gdefs.h>
|
||||||
@ -59,6 +59,12 @@
|
|||||||
#define O_TEXT 0
|
#define O_TEXT 0
|
||||||
#define O_BINARY 0
|
#define O_BINARY 0
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef O_TEXT
|
||||||
|
#define O_TEXT 0
|
||||||
|
#endif
|
||||||
|
#ifndef O_BINARY
|
||||||
|
#define O_BINARY 0
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef S_IWUSR
|
#ifndef S_IWUSR
|
||||||
|
Reference in New Issue
Block a user