[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegames/kpat/patsolve
From: Adriaan de Groot <groot () kde ! org>
Date: 2009-12-14 15:16:06
Message-ID: 1260803766.742630.31304.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1062388 by adridg:
Having enum values which are all-caps invites confusion with preprocessor defines. On \
Solaris, ERR is defined (in sys/regset.h) to 13, which is very weird, but also \
annoying. Just work around it.
M +4 -0 memory.h
M +4 -0 patsolve.cpp
--- trunk/KDE/kdegames/kpat/patsolve/memory.h #1062387:1062388
@@ -51,6 +51,10 @@
short depth;
};
+#ifdef ERR
+#undef ERR
+#endif
+
class MemoryManager
{
public:
--- trunk/KDE/kdegames/kpat/patsolve/patsolve.cpp #1062387:1062388
@@ -30,6 +30,10 @@
#include <sys/types.h>
+#ifdef ERR
+#undef ERR
+#endif
+
long all_moves = 0;
/* This is a 32 bit FNV hash. For more information, see
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic