]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/app.h
first round of Intel compiler warning fixes: down from a few thousands just to slight...
[wxWidgets.git] / include / wx / app.h
index 02c5aee54d3bfee1fada5b7cb6a710af94adaf63..4508ef1bca30d156a784b015cda2b5a148538e4f 100644 (file)
@@ -661,6 +661,7 @@ public:
     }                                                                       \
     wxAppInitializer                                                        \
         wxTheAppInitializer((wxAppInitializerFunction) wxCreateApp);        \
+    DECLARE_APP(appname)                                                    \
     appname& wxGetApp() { return *(appname *)wxTheApp; }
 
 // Same as IMPLEMENT_APP() normally but doesn't include themes support in
@@ -684,5 +685,13 @@ public:
 // function
 #define DECLARE_APP(appname) extern appname& wxGetApp();
 
+
+// declare the stuff defined by IMPLEMENT_APP() macro, it's not really needed
+// anywhere else but at the very least it suppresses icc warnings about
+// defining extern symbols without prior declaration, and it shouldn't do any
+// harm
+extern wxAppConsole *wxCreateApp();
+extern wxAppInitializer wxTheAppInitializer;
+
 #endif // _WX_APP_H_BASE_