diff --git a/src/mac/carbon/dialog.cpp b/src/mac/carbon/dialog.cpp index 8d23d958eb..402b749e7c 100644 --- a/src/mac/carbon/dialog.cpp +++ b/src/mac/carbon/dialog.cpp @@ -64,11 +64,13 @@ bool wxDialog::Create( wxWindow *parent, if ( !wxTopLevelWindow::Create( parent, id, title, pos, size, style, name ) ) return false; - + +#if TARGET_API_MAC_OSX HIViewRef growBoxRef = 0 ; OSStatus err = HIViewFindByID( HIViewGetRoot( (WindowRef)m_macWindow ), kHIViewWindowGrowBoxID, &growBoxRef ); if ( err == noErr && growBoxRef != 0 ) HIGrowBoxViewSetTransparent( growBoxRef, true ) ; +#endif return true; } diff --git a/src/mac/carbon/display.cpp b/src/mac/carbon/display.cpp index 9619dfcc2f..7b6eb4ef42 100644 --- a/src/mac/carbon/display.cpp +++ b/src/mac/carbon/display.cpp @@ -31,6 +31,7 @@ #include #include // for VDSwitchInfoRec #include + #include #endif #include "wx/display.h" diff --git a/src/mac/carbon/evtloop.cpp b/src/mac/carbon/evtloop.cpp index ab9e51700d..d5a9804e67 100644 --- a/src/mac/carbon/evtloop.cpp +++ b/src/mac/carbon/evtloop.cpp @@ -27,8 +27,11 @@ #include "wx/evtloop.h" #include "wx/app.h" -#include - +#ifdef __DARWIN__ + #include +#else + #include +#endif // ============================================================================ // wxEventLoop implementation // ============================================================================