From a8992510286ea0c3709d24e7cdd3eaf591f57f32 Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Sun, 21 Mar 2010 12:16:21 +0000 Subject: [PATCH] Use platform-specific "off_t" instead "long" for filelength() --- goldlib/gall/gfilport.cpp | 2 +- goldlib/gall/gfilutil.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/goldlib/gall/gfilport.cpp b/goldlib/gall/gfilport.cpp index cf1aa31..a808120 100644 --- a/goldlib/gall/gfilport.cpp +++ b/goldlib/gall/gfilport.cpp @@ -61,7 +61,7 @@ extern "C" { #if (defined(__BORLANDC__) && defined(__OS2__)) || defined(__UNIX__) || defined(__EMX__) -long filelength(int handle) { +off_t filelength(int handle) { struct stat s; if(fstat(handle, &s) == 0) diff --git a/goldlib/gall/gfilutil.h b/goldlib/gall/gfilutil.h index b224fb5..91a7428 100644 --- a/goldlib/gall/gfilutil.h +++ b/goldlib/gall/gfilutil.h @@ -237,7 +237,7 @@ extern "C" { // ------------------------------------------------------------------ #if (defined(__BORLANDC__) && defined(__OS2__)) || defined(__UNIX__) || defined(__EMX__) -long filelength(int fh); +off_t filelength(int fh); #endif