Fixed MinGW header bug where off_t/off64_t is not defined

(See http://sourceforge.net/p/mingw/bugs/2024/)
This commit is contained in:
Snaipe 2015-09-15 23:02:46 +02:00
parent 697c165fbe
commit 8688a5df4b

View file

@ -33,7 +33,15 @@
# include <fstream>
# ifdef __GNUC__
# if defined(__MINGW32__) || defined(__MINGW64__)
# define off_t _off_t
# define off64_t _off64_t
# endif
# include <ext/stdio_sync_filebuf.h>
# if defined(__MINGW32__) || defined(__MINGW64__)
# undef off_t
# undef off64_t
# endif
# endif
# else
# include <stdio.h>