freebsd-ports/emulators/xbraitenberg/files/patch-permstr.hh
Martin Wilke 33e4c2e429 - Fix build with clang
PR:		185500
Submitted by:	Ports Fury
2014-01-19 09:24:34 +00:00

22 lines
369 B
C++

--- permstr.hh.orig
+++ permstr.hh
@@ -4,6 +4,10 @@
#include <cstddef>
#include <cstdarg>
+class PermString;
+
+PermString permprintf(const char *, ...);
+
class PermString { struct Doodad; public:
typedef Doodad *Capsule;
@@ -91,7 +95,7 @@
inline int
hashcode(PermString s)
{
- return (int)(s.cc());
+ return (int)(size_t)(s.cc());
}
#endif