diff --git a/dtool/src/parser-inc/stdtypedefs.h b/dtool/src/parser-inc/stdtypedefs.h index 7b71c2e173..b04c39e367 100644 --- a/dtool/src/parser-inc/stdtypedefs.h +++ b/dtool/src/parser-inc/stdtypedefs.h @@ -23,12 +23,18 @@ #ifndef STDTYPEDEFS_H #define STDTYPEDEFS_H - +#ifndef __APPLE__ typedef unsigned int size_t; typedef int off_t; typedef unsigned int time_t; -typedef int ptrdiff_t; typedef int clock_t; + +struct FILE; + +namespace std { +} +#endif +typedef int ptrdiff_t; typedef int wchar_t; typedef unsigned int uint; @@ -38,10 +44,5 @@ typedef unsigned char uchar; #define NULL ((void *)0) -struct FILE; - -namespace std { -} - #endif