pkgsrc/emulators/gxemul/patches/patch-src_main_GXemul.cc
kamil 168f6e1599 gxemul: Fix build with clang 7svn
Fix C++11 literals, they are now fatal. Reverting to C++98 does not work
as it is, as this code uses C++11 extensions like 'PRIx32' macros.

Extend one int to long in order to handle all values in a switch() case.

No functional change intended.
2018-03-21 17:39:42 +00:00

20 lines
449 B
C++

$NetBSD: patch-src_main_GXemul.cc,v 1.1 2018/03/21 17:39:42 kamil Exp $
Fix C++11 literals.
--- src/main/GXemul.cc.orig 2014-08-17 08:45:14.000000000 +0000
+++ src/main/GXemul.cc
@@ -515,7 +515,7 @@ string GXemul::Version()
#else
<< "(unknown version)"
#endif
- << " "COPYRIGHT_MSG"\n"SECONDARY_MSG;
+ << " " COPYRIGHT_MSG "\n" SECONDARY_MSG;
return ss.str();
}
@@ -1164,4 +1164,3 @@ UNITTESTS(GXemul)
#endif
-