Use platform-specific "off_t" instead "long" for filelength()

This commit is contained in:
Stas Degteff 2010-03-21 12:16:21 +00:00
parent 3dcdcf8d3b
commit a899251028
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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