X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e273151278d28cceefe6eee8c49bc6915306805d..6954e0f6f3cc181609ac75507a6bb4ef0a3fa62a:/src/palmos/main.cpp diff --git a/src/palmos/main.cpp b/src/palmos/main.cpp index 551f447306..2c4f957771 100644 --- a/src/palmos/main.cpp +++ b/src/palmos/main.cpp @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -28,8 +24,11 @@ #pragma hdrstop #endif -#include "wx/event.h" -#include "wx/app.h" +#ifndef WX_PRECOMP + #include "wx/event.h" + #include "wx/app.h" +#endif //WX_PRECOMP + #include "wx/cmdline.h" #if wxUSE_GUI @@ -49,12 +48,12 @@ int wxEntry() */ wxArrayString args; int argc = args.GetCount(); - // +1 here for the terminating NULL wxChar **argv = new wxChar *[argc + 1]; for ( int i = 0; i < argc; i++ ) { - argv[i] = wxStrdup(args[i]); + //argv[i] = wxStrdup(args[i]); + argv[i] = wxStrdup(wxConvLibc.cMB2WX(args[i])); } // argv[] must be NULL-terminated