// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "colordlg.h"
#endif
#include "wx/msgdlg.h"
#endif
-#if wxUSE_COLOURDLG
-
-#include <windows.h>
+#if wxUSE_COLOURDLG && !wxUSE_SMARTPHONE
#include "wx/msw/private.h"
#include "wx/colordlg.h"