From: Vadim Zeitlin Date: Wed, 13 Aug 2003 22:59:37 +0000 (+0000) Subject: compilation fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cd0b91571faed1ed429b16afd8bbe8db1a793c62 compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/utils/HelpGen/src/HelpGen.cpp b/utils/HelpGen/src/HelpGen.cpp index e283903f8a..607f62d51e 100644 --- a/utils/HelpGen/src/HelpGen.cpp +++ b/utils/HelpGen/src/HelpGen.cpp @@ -51,15 +51,10 @@ // wxWindows #include "wx/wxprec.h" -#if wxUSE_GUI - #error "This is a console program and can be only compiled using wxBase" -#endif - #ifndef WX_PRECOMP #include "wx/string.h" #include "wx/log.h" #include "wx/dynarray.h" - #include "wx/wx.h" #endif // WX_PRECOMP #include "wx/file.h" @@ -525,10 +520,12 @@ private: // implementation // ============================================================================= +static char **g_argv = NULL; + // this function never returns static void usage() { - wxString prog = wxTheApp->argv[0]; + wxString prog = g_argv[0]; wxString basename = prog.AfterLast('/'); #ifdef __WXMSW__ if ( !basename ) @@ -566,6 +563,8 @@ static void usage() int main(int argc, char **argv) { + g_argv = argv; + wxInitializer initializer; if ( !initializer ) { @@ -2179,6 +2178,9 @@ static const wxString GetVersionString() /* $Log$ + Revision 1.24 2003/08/13 22:59:37 VZ + compilation fix + Revision 1.23 2003/06/13 17:05:43 VZ quote '|' inside regexes (fixes dump mode); fixed crash due to strange HelpGenApp code