pkgsrc/www/amaya/patches/patch-Amaya_amaya_HTMLedit_c
dholland 4f4aec3072 Fix build problems with gcc 4.5. The code makes no sense so I'm not sure
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.
2012-01-08 22:15:21 +00:00

16 lines
621 B
Text

$NetBSD: patch-Amaya_amaya_HTMLedit_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/amaya/HTMLedit.c~ 2009-12-09 10:11:22.000000000 +0000
+++ Amaya/amaya/HTMLedit.c
@@ -1689,7 +1689,7 @@ void SetREFattribute (Element element, D
{
#ifdef _WX
wxString tmpFile = TtaConvMessageToWX(tempURL);
- wxFile::wxFile (tmpFile, wxFile::write);
+ wxFile tmpFileFile (tmpFile, wxFile::write);
#endif /* _WX */
}
}