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).
This commit is contained in:
@@ -56,11 +56,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// define off_t
|
// define off_t
|
||||||
#if !defined(__WXMAC__) || defined(__UNIX__) || defined(__MACH__)
|
#include <sys/types.h>
|
||||||
#include <sys/types.h>
|
|
||||||
#else
|
|
||||||
typedef long off_t;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__VISUALC__)
|
#if defined(__VISUALC__)
|
||||||
typedef _off_t off_t;
|
typedef _off_t off_t;
|
||||||
|
Reference in New Issue
Block a user