From 795bbef6e22f1a7afd8947d8645bd1c9498151be Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Tue, 23 Mar 2010 09:06:37 +0000 Subject: [PATCH] Fix DJGPP build --- goldlib/gall/gfilport.cpp | 2 +- goldlib/gall/gfilutil.h | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) 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