From b0be28dae5c93dd7fc7eee1d748da11d8d97985a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 23 Sep 2015 00:56:49 +0200 Subject: [PATCH] Always include sys/types.h from wx/filefn.h It looks like the preprocessor checks were meant to avoid including this file under MacOS 9 and all the other platforms should have it, so it should be safe to include (although it still doesn't define off_t with MSVC, only _off_t). --- include/wx/filefn.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/wx/filefn.h b/include/wx/filefn.h index eb2a693d6c..147794323d 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -56,11 +56,7 @@ #endif // define off_t -#if !defined(__WXMAC__) || defined(__UNIX__) || defined(__MACH__) - #include -#else - typedef long off_t; -#endif +#include #if defined(__VISUALC__) typedef _off_t off_t;