For MinGW, use fseeko64 instead of _fseeki64 (which MinGW doesn't know about).
authorerikd <erikd@xiph.org>
Sun, 5 Oct 2008 05:04:01 +0000 (05:04 +0000)
committererikd <erikd@xiph.org>
Sun, 5 Oct 2008 05:04:01 +0000 (05:04 +0000)
svn path=/trunk/vorbis/; revision=15376

include/vorbis/vorbisfile.h

index fe3a3cc..e128fe8 100644 (file)
@@ -50,7 +50,10 @@ typedef struct {
 
 static int _ov_header_fseek_wrap(FILE *f,ogg_int64_t off,int whence){
   if(f==NULL)return(-1);
-#ifdef _WIN32
+
+#ifdef __MINGW32__
+  return fseeko64(f,off,whence);
+#elif defined (_WIN32)
   return _fseeki64(f,off,whence);
 #else
   return fseek(f,off,whence);