]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/app.cpp
xti additions / changes, trying to reduce dependencies
[wxWidgets.git] / src / motif / app.cpp
index e5381193b166bce77b83594325fc6bff7ba89f2a..0641c9878ea1a3772c61d45960b44806743f1d17 100644 (file)
@@ -9,7 +9,7 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "app.h"
 #endif
 
@@ -141,7 +141,7 @@ wxApp::~wxApp()
 
     delete m_perDisplayData;
 
-    wxTheApp = NULL;
+    wxApp::SetInstance(NULL);
 }
 
 bool wxApp::Initialized()