From 8688a5df4bd926562eeba03ee1157f205fc94cb7 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Tue, 15 Sep 2015 23:02:46 +0200 Subject: [PATCH] Fixed MinGW header bug where off_t/off64_t is not defined (See http://sourceforge.net/p/mingw/bugs/2024/) --- include/criterion/redirect.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/criterion/redirect.h b/include/criterion/redirect.h index 3e46997..66acdb2 100644 --- a/include/criterion/redirect.h +++ b/include/criterion/redirect.h @@ -33,7 +33,15 @@ # include # ifdef __GNUC__ +# if defined(__MINGW32__) || defined(__MINGW64__) +# define off_t _off_t +# define off64_t _off64_t +# endif # include +# if defined(__MINGW32__) || defined(__MINGW64__) +# undef off_t +# undef off64_t +# endif # endif # else # include