X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e612f101d324eb3a81f0e73f07594c1836b41545..a2d541ca9c552d1a30ba75970968a7a220f4955a:/utils/makegen/makegen.cpp diff --git a/utils/makegen/makegen.cpp b/utils/makegen/makegen.cpp index 5013ffdfde..7db8b972a7 100644 --- a/utils/makegen/makegen.cpp +++ b/utils/makegen/makegen.cpp @@ -28,15 +28,15 @@ // headers // ---------------------------------------------------------------------------- -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "wx/string.h" +#include "wx/file.h" +#include "wx/ffile.h" +#include "wx/app.h" +#include "wx/log.h" +#include "wx/dir.h" +#include "wx/textfile.h" +#include "wx/datetime.h" +#include "wx/cmdline.h" // ---------------------------------------------------------------------------- // the application class @@ -81,7 +81,9 @@ bool MakeGenApp::GenerateMakefile(const wxString& filename) return FALSE; } - wxFFile fileOut(m_outdir + filename, "w"); + wxString fileOutName; + fileOutName << m_outdir << _T('/') << filename; + wxFFile fileOut(fileOutName, "w"); if ( !fileOut.IsOpened() ) { wxLogError(_T("Makefile '%s' couldn't be generated."), filename.c_str()); @@ -90,7 +92,7 @@ bool MakeGenApp::GenerateMakefile(const wxString& filename) } wxLogVerbose(_T("Generating '%s' for '%s'..."), - (m_outdir + filename).c_str(), m_progname.c_str()); + fileOutName.c_str(), m_progname.c_str()); size_t count = fileIn.GetLineCount(); for ( size_t n = 0; n < count; n++ )