]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/popupcmn.cpp
fixed header include guard position (patch 992443)
[wxWidgets.git] / src / common / popupcmn.cpp
index f4d9bd55c270682c36a65013b60c01e2e92f4d7d..62b1a21c3a97cc51514648a06b4f83f93c5168a8 100644 (file)
@@ -17,7 +17,7 @@
 // headers
 // ----------------------------------------------------------------------------
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "popupwinbase.h"
 #endif
 
@@ -28,7 +28,7 @@
     #pragma hdrstop
 #endif
 
-#if wxUSE_POPUPWIN && !defined(__WXMOTIF__)
+#if wxUSE_POPUPWIN
 
 #include "wx/popupwin.h"
 
@@ -198,8 +198,9 @@ wxPopupTransientWindow::wxPopupTransientWindow(wxWindow *parent, int style)
 wxPopupTransientWindow::~wxPopupTransientWindow()
 {
     PopHandlers();
-
+#ifndef __WXX11__
     delete m_handlerFocus;
+#endif   
     delete m_handlerPopup;
 }