git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37959 
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
 
     if ( !wxTopLevelWindow::Create( parent, id, title, pos, size, style, name ) )
         return false;
 
     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 ) ;
     HIViewRef growBoxRef = 0 ;
     OSStatus err = HIViewFindByID( HIViewGetRoot( (WindowRef)m_macWindow ), kHIViewWindowGrowBoxID, &growBoxRef  );
     if ( err == noErr && growBoxRef != 0 )
         HIGrowBoxViewSetTransparent( growBoxRef, true ) ;
 
     #include <Quickdraw.h>
     #include <Video.h>  // for VDSwitchInfoRec
     #include <FixMath.h>
     #include <Quickdraw.h>
     #include <Video.h>  // for VDSwitchInfoRec
     #include <FixMath.h>
 #endif
 
 #include "wx/display.h"
 #endif
 
 #include "wx/display.h"
 
 #include "wx/evtloop.h"
 #include "wx/app.h"
 
 #include "wx/evtloop.h"
 #include "wx/app.h"
 
-#include <Carbon/Carbon.h>
-
+#ifdef __DARWIN__
+    #include <Carbon/Carbon.h>
+#else
+    #include <Carbon.h>
+#endif
 // ============================================================================
 // wxEventLoop implementation
 // ============================================================================
 // ============================================================================
 // wxEventLoop implementation
 // ============================================================================