summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-11-15 09:35:10 -0800
committerChad Versace <chad.versace@linux.intel.com>2012-11-15 09:40:20 -0800
commit37f13f4898d7bd36622ce7b49ff839f2b3968479 (patch)
treed82bfc6677bfce29aa2c29bc021d1d94d8ce0f7f
parentc135bc9392554e47952c85c5942aea0ca4454465 (diff)
include: #define restrict for C language < c99
Fixes build breakage on Piglit, which uses -std=c90 on Linux. The 'restrict' keyword was introduced in C99. The #definition of restrict was present in the now deleted header waffle_portability.h. I forgot to move the #definition during the header shuffle. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
-rw-r--r--include/waffle/waffle.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/waffle/waffle.h b/include/waffle/waffle.h
index b4ac742..00670fb 100644
--- a/include/waffle/waffle.h
+++ b/include/waffle/waffle.h
@@ -50,6 +50,10 @@ extern "C" {
# define WAFFLE_API
#endif
+#if __STDC_VERSION__ < 199901L
+# define restrict
+#endif
+
struct waffle_display;
struct waffle_config;
struct waffle_context;