Fix build against gecode 4.0.0 stable
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 02 Aug 2013 18:17:03 +0200
branchstable
changeset 712 0f967bf3a5de
parent 711 395b8ad2228c
child 713 428421ffeb06
Fix build against gecode 4.0.0 Looks like they changed enums to functions. Closes #159002
gecode_solver.cpp
--- a/gecode_solver.cpp	Fri Aug 02 16:43:47 2013 +0200
+++ b/gecode_solver.cpp	Fri Aug 02 18:17:03 2013 +0200
@@ -40,6 +40,11 @@
 #define convexHull convex
 #endif
 
+#if GE_VERSION >= PM_VERSION(4, 0, 0)
+#define INT_VAR_NONE INT_VAR_NONE()
+#define INT_VAL_MIN INT_VAL_MIN()
+#endif
+
 using namespace std;
 using namespace Gecode;