Fix build against gecode 4.0.0

Looks like they changed enums to functions.

Closes #159002

authorJulien Cristau <julien.cristau@logilab.fr>
changeset0f967bf3a5de
branchstable
phasepublic
hiddenno
parent revision#395b8ad2228c prepare 0.31.4
child revision#428421ffeb06 [debian] don't use sub-shells, and don't ignore errors from loops
files modified by this revision
gecode_solver.cpp
# HG changeset patch
# User Julien Cristau <julien.cristau@logilab.fr>
# Date 1375460223 -7200
# Fri Aug 02 18:17:03 2013 +0200
# Branch stable
# Node ID 0f967bf3a5de1a951aa9846c661621d60ab4493c
# Parent 395b8ad2228c608619599b5e1f116aaa1bd0fe7e
Fix build against gecode 4.0.0

Looks like they changed enums to functions.

Closes #159002

diff --git a/gecode_solver.cpp b/gecode_solver.cpp
@@ -38,10 +38,15 @@
1  #else
2  #define SELF (*this)
3  #define convexHull convex
4  #endif
5 
6 +#if GE_VERSION >= PM_VERSION(4, 0, 0)
7 +#define INT_VAR_NONE INT_VAR_NONE()
8 +#define INT_VAL_MIN INT_VAL_MIN()
9 +#endif
10 +
11  using namespace std;
12  using namespace Gecode;
13 
14  #define USE_CLOCK
15  #ifdef USE_CLOCK