summaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMain.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-05-02 17:06:32 -0700
committerChris Robinson <[email protected]>2011-05-02 17:06:32 -0700
commit24aaa24b5c39db0a204b7ed78d5bbc154563dd0a (patch)
tree32144e38d2087add9d82b264822d4417f0c8cfe7 /OpenAL32/Include/alMain.h
parentfd795a7eebf3259c01e409495b61487a4e706b88 (diff)
Check for the C99 restrict keyword
GCC does not default to C99 mode yet, so does not know restrict, however it still allows using __restrict in its place
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r--OpenAL32/Include/alMain.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 09b85baf..aa1b50a1 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -171,6 +171,14 @@ typedef unsigned long long ALuint64;
#define PRINTF_STYLE(x, y)
#endif
+#if defined(HAVE_RESTRICT)
+#define RESTRICT restrict
+#elif defined(HAVE___RESTRICT)
+#define RESTRICT __restrict
+#else
+#define RESTRICT
+#endif
+
#ifdef _WIN32
#ifndef _WIN32_WINNT