]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3data/p3dlib.c
Remove -Wno-int-conversion
[xonotic/netradiant.git] / tools / quake3 / q3data / p3dlib.c
index 0b228e2fad9a439039719a03eea366d726598465..9de836146daac869e3927fc4e1eeb574b157ae1a 100644 (file)
 #if defined ( __linux__ ) || defined ( __APPLE__ )
        #include "cmdlib.h"
        #define _strcmpi Q_stricmp
-       #define filelength Q_filelength
        #define strlwr strlower
+       #define filelength(f) Q_filelength(f)
+#else
+       #define filelength(f) filelength(fileno(f))
 #endif
 typedef struct
 {
@@ -68,7 +70,7 @@ int P3DLoad( const char *filename ){
 
        memset( &p3d, 0, sizeof( p3d ) );
 
-       p3d.len = filelength( fileno( fp ) );
+       p3d.len = filelength( fp );
 
        p3d.curpos = p3d.buffer = malloc( p3d.len );