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:
parent
697c165fbe
commit
8688a5df4b
1 changed files with 8 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue