aboutsummaryrefslogtreecommitdiff
path: root/games/KnightCap
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2011-06-03 13:41:39 +0000
committerPav Lucistnik <pav@FreeBSD.org>2011-06-03 13:41:39 +0000
commit3908ad806e036f7569c1050339f32cc04a5b8635 (patch)
tree8e654337ca2834d22ac0e6ad52a6ae75256405e9 /games/KnightCap
parent3adb7f6b99466359c115f24e8b4b509a227fef43 (diff)
downloadports-3908ad806e036f7569c1050339f32cc04a5b8635.tar.gz
ports-3908ad806e036f7569c1050339f32cc04a5b8635.zip
- Silence compile time warning
PR: ports/156588 Submitted by: Kalten <kalten@gmx.at>
Notes
Notes: svn path=/head/; revision=275027
Diffstat (limited to 'games/KnightCap')
-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;
}