Commit a1f727bc authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

file.c: _WIN32 support

parent 0f557275
......@@ -1194,16 +1194,21 @@ int fileClose(int fileID)
fprintf(stderr, " file mode : %c\n", fileptr->mode);
#if ! defined (_WIN32)
if ( sizeof(off_t) > sizeof(long) )
{
#if defined (_WIN32)
fprintf(stderr, " file size : %l64d\n", (long long) fileptr->size);
if ( fileptr->type == FILE_TYPE_OPEN )
fprintf(stderr, " file position : %l64d\n", (long long) fileptr->position);
fprintf(stderr, " bytes transfered : %l64d\n", (long long) fileptr->byteTrans);
#else
fprintf(stderr, " file size : %lld\n", (long long) fileptr->size);
if ( fileptr->type == FILE_TYPE_OPEN )
fprintf(stderr, " file position : %lld\n", (long long) fileptr->position);
fprintf(stderr, " bytes transfered : %lld\n", (long long) fileptr->byteTrans);
#endif
}
else
#endif
{
fprintf(stderr, " file size : %ld\n", (long) fileptr->size);
if ( fileptr->type == FILE_TYPE_OPEN )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment