// declarations
// ============================================================================
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "uxtheme.h"
#endif
bool wxUxThemeEngine::Initialize()
{
+ if ( wxTheApp->GetComCtl32Version() < 600 )
+ {
+ // not using theme-aware comctl32.dll anyhow, don't even try to use
+ // themes
+ return false;
+ }
+
// we're prepared to handle the errors
wxLogNull noLog;