1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/games/xmahjongg/files/patch-lcdf
Joerg Wunsch d8568dba0c Fix build errors seen by recent C++ compilers.
While being here, add LICENSE.
2018-07-09 08:29:44 +00:00

25 lines
710 B
Plaintext

--- include/lcdf/vector.hh.orig 2003-11-17 03:21:23 UTC
+++ include/lcdf/vector.hh
@@ -7,7 +7,7 @@
#elif defined(HAVE_NEW_H)
# include <new.h>
#else
-static inline void *operator new(size_t, void *v) { return v; }
+inline void *operator new(size_t, void *v) { return v; }
#endif
template <class T>
--- liblcdf/permstr.cc.orig 2004-11-21 19:01:59 UTC
+++ liblcdf/permstr.cc
@@ -111,8 +111,8 @@ static int scatter[] = { /* map c
void
PermString::initialize(const char* s, int length)
{
- register unsigned char* m = (unsigned char*) s;
- register unsigned char* mm;
+ unsigned char* m = (unsigned char*) s;
+ unsigned char* mm;
if (length < 0)
length = (s ? strlen(s) : 0);