compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -51,15 +51,10 @@
|
|||||||
// wxWindows
|
// wxWindows
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
#if wxUSE_GUI
|
|
||||||
#error "This is a console program and can be only compiled using wxBase"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/string.h"
|
#include "wx/string.h"
|
||||||
#include "wx/log.h"
|
#include "wx/log.h"
|
||||||
#include "wx/dynarray.h"
|
#include "wx/dynarray.h"
|
||||||
#include "wx/wx.h"
|
|
||||||
#endif // WX_PRECOMP
|
#endif // WX_PRECOMP
|
||||||
|
|
||||||
#include "wx/file.h"
|
#include "wx/file.h"
|
||||||
@@ -525,10 +520,12 @@ private:
|
|||||||
// implementation
|
// implementation
|
||||||
// =============================================================================
|
// =============================================================================
|
||||||
|
|
||||||
|
static char **g_argv = NULL;
|
||||||
|
|
||||||
// this function never returns
|
// this function never returns
|
||||||
static void usage()
|
static void usage()
|
||||||
{
|
{
|
||||||
wxString prog = wxTheApp->argv[0];
|
wxString prog = g_argv[0];
|
||||||
wxString basename = prog.AfterLast('/');
|
wxString basename = prog.AfterLast('/');
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
if ( !basename )
|
if ( !basename )
|
||||||
@@ -566,6 +563,8 @@ static void usage()
|
|||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
g_argv = argv;
|
||||||
|
|
||||||
wxInitializer initializer;
|
wxInitializer initializer;
|
||||||
if ( !initializer )
|
if ( !initializer )
|
||||||
{
|
{
|
||||||
@@ -2179,6 +2178,9 @@ static const wxString GetVersionString()
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.24 2003/08/13 22:59:37 VZ
|
||||||
|
compilation fix
|
||||||
|
|
||||||
Revision 1.23 2003/06/13 17:05:43 VZ
|
Revision 1.23 2003/06/13 17:05:43 VZ
|
||||||
quote '|' inside regexes (fixes dump mode); fixed crash due to strange HelpGenApp code
|
quote '|' inside regexes (fixes dump mode); fixed crash due to strange HelpGenApp code
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user