4f4aec3072
what I did is going to work... or that the code that was here previously ever worked or actually did what anyone upstream intended. C++ is fun that way.
19 lines
869 B
Text
19 lines
869 B
Text
$NetBSD: patch-Amaya_thotlib_base_platform_c,v 1.1 2012/01/08 22:15:21 dholland Exp $
|
|
|
|
Hack insane C++ so gcc 4.5 accepts it. No idea if this works. No idea
|
|
if it worked before I touched it, either.
|
|
|
|
--- Amaya/thotlib/base/platform.c.orig 2009-12-02 11:23:07.000000000 +0000
|
|
+++ Amaya/thotlib/base/platform.c
|
|
@@ -329,9 +329,9 @@ ThotBool TtaFileCopy (CONST char *source
|
|
{
|
|
tmp = (char *)TtaGetMemory (strlen(targetFileName)+10);
|
|
sprintf (tmp, "%s.tmp", targetFileName);
|
|
- wxFile::wxFile (targetFile, wxFile::write);
|
|
+ wxFile targetFileFile (targetFile, wxFile::write);
|
|
tmpFile = TtaConvMessageToWX(tmp);
|
|
- wxFile::wxFile (tmpFile, wxFile::write);
|
|
+ wxFile tmpFileFile (tmpFile, wxFile::write);
|
|
result = wxFile::Exists(targetFile);
|
|
if (result)
|
|
result = wxConcatFiles (tmpFile, sourceFile, targetFile);
|