Displaying 1 result from an estimated 1 matches for "_ftell64_wrap".
2004 Sep 06
1
Fixing libvorbisfile to handle largefiles
...urn fseek(f,off,whence); */
+/* There must be a better way to do this, no? */
+#if defined(__FreeBSD__) /* BSD */
+ return fseeko(f,off,whence);
+#else
return fseek(f,off,whence);
+#endif
+}
+
+/* if, eg, 64 bit stdio is configured by default, this will build with
+ ftell64 */
+ogg_int64_t _ftell64_wrap(FILE *f){
+ if(f==NULL)return(-1);
+/* There must be a better way to do this, no? */
+#if defined(__FreeBSD__) /* BSD */
+ return ftello(f);
+#else
+ return ftell(f);
+#endif
}
static int _ov_open1(void *f,OggVorbis_File *vf,char *initial,
More comments: As per the code comment, I'...