diff options
author | Luis de Bethencourt <luis@debethencourt.com> | 2014-05-03 21:38:42 -0400 |
---|---|---|
committer | Luis de Bethencourt <luis@debethencourt.com> | 2014-05-03 21:45:27 -0400 |
commit | 8b3a5907d5a6bf2b265c7194f1988ec2c5a0901b (patch) | |
tree | 717c0a412be42c81d76763eeae667d23b727d6be /tests/examples/gl | |
parent | 3bf1b0c75adc806cd786b4bd22b948dab7808037 (diff) |
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"
Diffstat (limited to 'tests/examples/gl')
-rw-r--r-- | tests/examples/gl/clutter/cluttershare.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/examples/gl/clutter/cluttershare.c b/tests/examples/gl/clutter/cluttershare.c index d3f1b1e10..de7cd66d0 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 <clutter/clutter.h> #ifndef WIN32 #include <clutter/x11/clutter-x11.h> |