Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/games/KnightCap/files/patch-knightcap.h
16461 views
1
--- knightcap.h.orig 1998-05-18 01:09:21.000000000 +0200
2
+++ knightcap.h 2011-06-03 15:40:22.000000000 +0200
3
@@ -216,6 +216,9 @@
4
#define BMAJOR_MASK (BPIECE_MASK & ~BMINOR_MASK)
5
#define MAJOR_MASK (WMAJOR_MASK | BMAJOR_MASK)
6
7
+#ifdef INFINITY
8
+#undef INFINITY
9
+#endif
10
#define INFINITY (40.50*STATIC_PAWN_VALUE)
11
#define ILLEGAL (-40*STATIC_PAWN_VALUE)
12
#define WIN (-(ILLEGAL+1))
13
@@ -632,16 +635,6 @@
14
return i1 > i2? i1 : i2;
15
}
16
17
-static inline float fmin(float i1, float i2)
18
-{
19
- return i1 > i2? i2 : i1;
20
-}
21
-
22
-static inline float fmax(float i1, float i2)
23
-{
24
- return i1 > i2? i1 : i2;
25
-}
26
-
27
static inline etype emin(etype i1, etype i2)
28
{
29
return i1 > i2? i2 : i1;
30
31