diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2013-09-18 14:24:10 -0700 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2013-09-18 15:48:09 -0700 |
commit | d4728dd569da4c7fa262dc1cd4bec21277450dd6 (patch) | |
tree | 5be1b9221b27ca96ac921d4c374cb84b809f53cf /examples | |
parent | be064db44281a9bfa0e63595018df84d0c31e5f1 (diff) |
waffle: Add feature test macro WAFFLE_API_VERSION
This macro controls the API exposed by Waffle's headers. Use it to guard
the new API added in waffle 1.3.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/gl_basic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/gl_basic.c b/examples/gl_basic.c index efdec8f..5812f1c 100644 --- a/examples/gl_basic.c +++ b/examples/gl_basic.c @@ -34,6 +34,7 @@ /// each buffer swap. #define _POSIX_C_SOURCE 199309L // glibc feature macro for nanosleep. +#define WAFFLE_API_VERSION 0x0103 #include <getopt.h> #include <stdarg.h> |