From 64a144f114a388b3ff8acee4d8bdb5484be59cd1 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Sat, 3 May 2014 21:38:42 -0400 Subject: [PATCH] gl/clutter: safer check for cogl version Use COGL_VERSION_ENCODE to check for the minimum required and maximum allowed cogl version. In certain situations just using the COGL_VERSION_* macro name can give you the following error: error "COGL_VERSION_MAX_ALLOWED must be >= COGL_VERSION_MIN_REQUIRED" --- tests/examples/gl/clutter/cluttershare.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/examples/gl/clutter/cluttershare.c b/tests/examples/gl/clutter/cluttershare.c index d3f1b1e102..de7cd66d0c 100644 --- a/tests/examples/gl/clutter/cluttershare.c +++ b/tests/examples/gl/clutter/cluttershare.c @@ -25,8 +25,8 @@ #define CLUTTER_VERSION_MIN_REQUIRED CLUTTER_VERSION_1_8 #define CLUTTER_VERSION_MAX_ALLOWED CLUTTER_VERSION_1_10 -#define COGL_VERSION_MIN_REQUIRED COGL_VERSION_1_16 -#define COGL_VERSION_MAX_ALLOWED COGL_VERSION_1_18 +#define COGL_VERSION_MIN_REQUIRED COGL_VERSION_ENCODE (1, 16, 0) +#define COGL_VERSION_MAX_ALLOWED COGL_VERSION_ENCODE (1, 18, 0) #include #ifndef WIN32 #include