]> git.saurik.com Git - wxWidgets.git/commitdiff
include init.h as wxEntry is supposed to be declared here
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 30 Jun 2003 21:39:25 +0000 (21:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 30 Jun 2003 21:39:25 +0000 (21:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/app.h

index 7d27f9a427192e9eb6e1563855d16e8986ceaa8d..d01a8c6d595f0b5dbfd041d34e100fc6af017a68 100644 (file)
@@ -24,6 +24,7 @@
 #endif // wxUSE_GUI
 
 #include "wx/build.h"
+#include "wx/init.h"        // we must declare wxEntry()
 
 class WXDLLEXPORT wxApp;
 class WXDLLEXPORT wxAppTraits;
@@ -554,7 +555,6 @@ public:
 
 #if !wxUSE_GUI || !defined(__WXMSW__)
     #define IMPLEMENT_WXWIN_MAIN                                              \
-        extern int wxEntry( int& argc, char **argv );                         \
         int main(int argc, char **argv) { return wxEntry(argc, argv); }
 #elif defined(__WXMSW__) && defined(WXUSINGDLL)
     #define IMPLEMENT_WXWIN_MAIN \