]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - fs.c
first part of fog changes: no longer use a complex glsl equation; modify the table...
[xonotic/darkplaces.git] / fs.c
diff --git a/fs.c b/fs.c
index a4d173c40233c2b90dde3edebbd9ba44ff4d4b06..72475b697883d75bad6912f8205fd4b881ddd109 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -22,9 +22,6 @@
                Boston, MA  02111-1307, USA
 */
 
-// on UNIX platforms we need to define this so that video saving does not cause a SIGFSZ (file size) signal when a video clip exceeds 2GB
-#define _FILE_OFFSET_BITS 64
-
 #include "quakedef.h"
 
 #include <limits.h>
 # define O_NONBLOCK 0
 #endif
 
+// largefile support for Win32
+#ifdef WIN32
+# define lseek _lseeki64
+#endif
 
 /*
 
@@ -2168,7 +2169,7 @@ int FS_Seek (qfile_t* file, fs_offset_t offset, int whence)
                default:
                        return -1;
        }
-       if (offset < 0 || offset > (long) file->real_length)
+       if (offset < 0 || offset > file->real_length)
                return -1;
 
        // If we have the data in our read buffer, we don't need to actually seek