]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix test for wxHAS_GENERIC_PANEL for PCH-less build.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Mar 2011 11:50:47 +0000 (11:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Mar 2011 11:50:47 +0000 (11:50 +0000)
wxHAS_GENERIC_PANEL is only defined in wx/panel.h so test for it after
including this file, not before.

This fixes link errors due to missing wxPanel symbols in PCH-less builds.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/panelg.cpp

index 8e86b172d7eab25f47540bfbe23a4bbe103c9281..d539393dbe3a836cc75ef5793ba68a876eea8679 100644 (file)
     #pragma hdrstop
 #endif
 
     #pragma hdrstop
 #endif
 
-#ifdef wxHAS_GENERIC_PANEL
-
 #ifndef WX_PRECOMP
     #include "wx/dc.h"
     #include "wx/panel.h"
 #endif // WX_PRECOMP
 
 #ifndef WX_PRECOMP
     #include "wx/dc.h"
     #include "wx/panel.h"
 #endif // WX_PRECOMP
 
+#ifdef wxHAS_GENERIC_PANEL
+
 // ============================================================================
 // implementation
 // ============================================================================
 // ============================================================================
 // implementation
 // ============================================================================