Use platform-specific "off_t" instead "long" for filelength()
This commit is contained in:
parent
3dcdcf8d3b
commit
a899251028
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user