From 69e64e1ed2afad1743fd438bf386e4e98631ce9d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 6 Oct 2013 03:53:20 -0700 Subject: Add a workaround for KDevelop not recognizing 'restrict' --- OpenAL32/Include/alMain.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OpenAL32') 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 typedef int64_t ALint64; -- cgit v1.2.3