#ifndef WX_PRECOMP
#include "wx/intl.h"
#include "wx/app.h"
+ #include "wx/log.h"
#if wxUSE_GUI
#include "wx/toplevel.h"
#include "wx/font.h"
#include "wx/osx/private.h"
-#ifdef wxOSX_USE_COCOA
+#if wxOSX_USE_COCOA
// to get the themeing APIs
#include <Carbon/Carbon.h>
#endif