diff options
author | Chris Robinson <[email protected]> | 2013-10-06 03:53:20 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-10-06 03:53:20 -0700 |
commit | 69e64e1ed2afad1743fd438bf386e4e98631ce9d (patch) | |
tree | 1d4df37a80baeccf39af3b3e6ab05c86bcd94682 | |
parent | ba52ac9bcd489b5c44f8b2193f63986ef03f5f20 (diff) |
Add a workaround for KDevelop not recognizing 'restrict'
-rw-r--r-- | OpenAL32/Include/alMain.h | 7 |
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; |