#include <Sound.h>
#endif
+#if wxUSE_GUI
#if TARGET_API_MAC_OSX
#include <CoreServices/CoreServices.h>
#else
#include <ATSUnicode.h>
#include <TextCommon.h>
#include <TextEncodingConverter.h>
+#endif // wxUSE_GUI
#include "wx/mac/private.h" // includes mac headers