include/share/compat.h : feeko and ftello fixes for MinGW.
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 10 Mar 2013 07:38:03 +0000 (18:38 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 10 Mar 2013 07:38:07 +0000 (18:38 +1100)
Patch from LRN <lrn1986@gmail.com>.

include/share/compat.h

index 950a182..279e866 100644 (file)
 #ifndef ftello
 #define ftello ftell
 #endif
+#else
+/* MinGW */
+#if !defined(HAVE_FSEEKO)
+#  define fseeko fseeko64
+#  define ftello ftello64
+#endif
 #endif
 #endif