#if wxOSX_USE_ATSU_TEXT
// we need theming and atsu
#include <Carbon/Carbon.h>
+#else
+ // we only need theming, if we find a better include replace the following
+ #include <Carbon/Carbon.h>
#endif
#ifdef __OBJC__
#ifdef __WXMAC__
#include "wx/osx/private.h"
-// for theming support
-#include <Carbon/Carbon.h>
#endif
#include "wx/arrimpl.cpp"
#ifdef __WXMAC__
#include "wx/osx/private.h"
-// for theming support
-#include <Carbon/Carbon.h>
#endif
#include "wx/arrimpl.cpp"
#include "wx/osx/private.h"
#include "wx/graphics.h"
#include "wx/dcgraph.h"
-// for theming support
-#include <Carbon/Carbon.h>
#endif
#ifdef __WXGTK__
#ifdef __WXMAC__
#include "wx/osx/private.h"
- // for theming support
- #include <Carbon/Carbon.h>
#endif
#if defined(__WXMSW__) && !defined(__WXWINCE__) && !defined(__WXUNIVERSAL__)
#include "wx/osx/private.h"
-#if wxOSX_USE_ATSU_TEXT && !wxOSX_USE_CARBON
-// include theming support
-#include <Carbon/Carbon.h>
-#endif
-
#include <map>
#include <string>
#include "wx/dcgraph.h"
#include "wx/osx/private.h"
-#if wxOSX_USE_COCOA
-// bring in the theme headers
-#include <Carbon/Carbon.h>
-#endif
-
// check if we're currently in a paint event
inline bool wxInPaintEvent(wxWindow* win, wxDC& dc)
{
#endif
#include "wx/osx/private.h"
-
-#if wxOSX_USE_COCOA
-// to get the theming APIs
-#include <Carbon/Carbon.h>
-#endif
-
#include "wx/osx/private/timer.h"
#include "wx/evtloop.h"
#include "wx/osx/uma.h"
#else
#include "wx/osx/private.h"
-#if wxOSX_USE_COCOA
-// bring in theming
-#include <Carbon/Carbon.h>
-#endif
#endif
#define MAC_SCROLLBAR_SIZE 15