]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Win32 largefile support (mostly for capturevideo)
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 9 Nov 2007 13:34:34 +0000 (13:34 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 9 Nov 2007 13:34:34 +0000 (13:34 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7669 d7cf8633-e32d-0410-b094-e92efae38249

fs.c
fs.h

diff --git a/fs.c b/fs.c
index a4d173c40233c2b90dde3edebbd9ba44ff4d4b06..362b36ad71c1b5cd0093ecf5b617d66c2123b4ce 100644 (file)
--- a/fs.c
+++ b/fs.c
 # define O_NONBLOCK 0
 #endif
 
+// largefile support for Win32
+#ifdef WIN32
+# define lseek _lseeki64
+#endif
 
 /*
 
diff --git a/fs.h b/fs.h
index 9ed0b5114cf2c22c236758cf586f9221634f8ce0..141886addc386561440add5ae15105e402a26730 100644 (file)
--- a/fs.h
+++ b/fs.h
@@ -31,8 +31,8 @@
 typedef struct qfile_s qfile_t;
 
 #ifdef WIN32
-typedef long fs_offset_t; // 32bit
-//typedef _int64 fs_offset_t; // 64bit (lots of warnings, and lseek/read/write still don't take 64bit on win64)
+//typedef long fs_offset_t; // 32bit
+typedef __int64 fs_offset_t; // 64bit (lots of warnings, and read/write still don't take 64bit on win64)
 #else
 typedef long long fs_offset_t;
 #endif