From: divverent Date: Fri, 9 Nov 2007 13:34:34 +0000 (+0000) Subject: Win32 largefile support (mostly for capturevideo) X-Git-Tag: xonotic-v0.1.0preview~2812 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d06362d5dafb1b93f3f50318262bac269326f62c;p=xonotic%2Fdarkplaces.git Win32 largefile support (mostly for capturevideo) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7669 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/fs.c b/fs.c index a4d173c4..362b36ad 100644 --- a/fs.c +++ b/fs.c @@ -52,6 +52,10 @@ # define O_NONBLOCK 0 #endif +// largefile support for Win32 +#ifdef WIN32 +# define lseek _lseeki64 +#endif /* diff --git a/fs.h b/fs.h index 9ed0b511..141886ad 100644 --- 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