From: Stefan Csomor Date: Sun, 24 Jul 2005 13:28:52 +0000 (+0000) Subject: OSX two-level header fixes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/40ba2f3bcd84b58d4506a7165968c3ad8742ccfc OSX two-level header fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/appbase.cpp b/src/common/appbase.cpp index c0af2ac256..8d223f8da0 100644 --- a/src/common/appbase.cpp +++ b/src/common/appbase.cpp @@ -57,11 +57,8 @@ #endif #if defined(__WXMAC__) - // VZ: MacTypes.h is enough under Mac OS X (where I could test it) but - // I don't know which headers are needed under earlier systems so - // include everything when in doubt #ifdef __DARWIN__ - #include "MacTypes.h" + #include #else #include "wx/mac/private.h" // includes mac headers #endif diff --git a/src/common/encconv.cpp b/src/common/encconv.cpp index ac467d90d8..d6d4dd5a54 100644 --- a/src/common/encconv.cpp +++ b/src/common/encconv.cpp @@ -36,10 +36,13 @@ #endif #ifdef __WXMAC__ - #include - #include - #include - +#ifdef __DARWIN__ +#include +#else +#include +#include +#include +#endif #include "wx/fontutil.h" #include "wx/mac/private.h" // includes mac headers diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 40bc93d871..ed6cb03ae8 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -75,9 +75,11 @@ #include "wx/utils.h" #ifdef __WXMAC__ +#ifndef __DARWIN__ #include #include #include +#endif #include "wx/mac/private.h" // includes mac headers #endif