aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-10-07 06:05:42 -0700
committerChris Robinson <[email protected]>2013-10-07 06:05:42 -0700
commit1461903e0d713185875ab9d3ecc40ab922acb163 (patch)
treedc002f1c28af5181274037c898c8c557e8985c1a
parent8aa237ac239c2be0ee6fc63393c3e5b288aac33f (diff)
Add a workaround for KDevelop not recognizing the ALIGN macro
-rw-r--r--OpenAL32/Include/alMain.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 92d6e7a8..10426138 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -25,6 +25,11 @@
/* 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
+/* KDevelop won't see the ALIGN macro from config.h when viewing files that
+ * don't include it directly (e.g. headers). */
+#ifndef ALIGN
+#define ALIGN(x)
+#endif
#endif