diff --git a/goldlib/gall/gfilport.cpp b/goldlib/gall/gfilport.cpp index a808120..629c91d 100644 --- a/goldlib/gall/gfilport.cpp +++ b/goldlib/gall/gfilport.cpp @@ -59,7 +59,7 @@ extern "C" { // ------------------------------------------------------------------ -#if (defined(__BORLANDC__) && defined(__OS2__)) || defined(__UNIX__) || defined(__EMX__) +#if !defined(__DJGPP__) && ((defined(__BORLANDC__) && defined(__OS2__)) || defined(__UNIX__) || defined(__EMX__)) off_t filelength(int handle) { diff --git a/goldlib/gall/gfilutil.h b/goldlib/gall/gfilutil.h index 2a48fb2..8442353 100644 --- a/goldlib/gall/gfilutil.h +++ b/goldlib/gall/gfilutil.h @@ -55,10 +55,6 @@ // ------------------------------------------------------------------M #if defined(__UNIX__) -#if !defined(__BEOS__) && !defined(__QNXNTO__) -#define O_TEXT 0 -#define O_BINARY 0 -#endif #ifndef O_TEXT #define O_TEXT 0 #endif @@ -242,7 +238,7 @@ extern "C" { // ------------------------------------------------------------------ -#if (defined(__BORLANDC__) && defined(__OS2__)) || defined(__UNIX__) || defined(__EMX__) +#if !defined(__DJGPP__) && ((defined(__BORLANDC__) && defined(__OS2__)) || defined(__UNIX__) || defined(__EMX__)) off_t filelength(int fh); #endif