aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2011-06-03 21:41:39 +0800
committerpav <pav@FreeBSD.org>2011-06-03 21:41:39 +0800
commitd9c6e6ba64bcc45244f6fa01d344a19e01d443bf (patch)
tree1676255471e68dd18e73a11c87a8db26703e6470 /games
parent8d0f0e63b6d3ff8a2499d4667a4b5345e40f3474 (diff)
downloadfreebsd-ports-gnome-d9c6e6ba64bcc45244f6fa01d344a19e01d443bf.tar.gz
freebsd-ports-gnome-d9c6e6ba64bcc45244f6fa01d344a19e01d443bf.tar.zst
freebsd-ports-gnome-d9c6e6ba64bcc45244f6fa01d344a19e01d443bf.zip
- Silence compile time warning
PR: ports/156588 Submitted by: Kalten <kalten@gmx.at>
Diffstat (limited to 'games')
-rw-r--r--games/KnightCap/files/patch-knightcap.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/games/KnightCap/files/patch-knightcap.h b/games/KnightCap/files/patch-knightcap.h
index 86e49fbe7591..0ad29935603e 100644
--- a/games/KnightCap/files/patch-knightcap.h
+++ b/games/KnightCap/files/patch-knightcap.h
@@ -1,6 +1,16 @@
---- knightcap.h Mon Jan 24 22:20:22 2005
-+++ knightcap.h Mon Jan 24 22:17:19 2005
-@@ -632,16 +632,6 @@
+--- knightcap.h.orig 1998-05-18 01:09:21.000000000 +0200
++++ knightcap.h 2011-06-03 15:40:22.000000000 +0200
+@@ -216,6 +216,9 @@
+ #define BMAJOR_MASK (BPIECE_MASK & ~BMINOR_MASK)
+ #define MAJOR_MASK (WMAJOR_MASK | BMAJOR_MASK)
+
++#ifdef INFINITY
++#undef INFINITY
++#endif
+ #define INFINITY (40.50*STATIC_PAWN_VALUE)
+ #define ILLEGAL (-40*STATIC_PAWN_VALUE)
+ #define WIN (-(ILLEGAL+1))
+@@ -632,16 +635,6 @@
return i1 > i2? i1 : i2;
}