summaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-10-06 03:53:20 -0700
committerChris Robinson <[email protected]>2013-10-06 03:53:20 -0700
commit69e64e1ed2afad1743fd438bf386e4e98631ce9d (patch)
tree1d4df37a80baeccf39af3b3e6ab05c86bcd94682 /OpenAL32
parentba52ac9bcd489b5c44f8b2193f63986ef03f5f20 (diff)
Add a workaround for KDevelop not recognizing 'restrict'
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alMain.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 71920d39..94d69bf3 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -21,6 +21,13 @@
#endif
+#ifdef IN_IDE_PARSER
+/* KDevelop's parser doesn't recognize the C99-standard restrict keyword, but
+ * recent versions (at least 4.5.1) do recognize GCC's __restrict. */
+#define restrict __restrict
+#endif
+
+
#if defined(HAVE_STDINT_H)
#include <stdint.h>
typedef int64_t ALint64;