aboutsummaryrefslogtreecommitdiffstats
path: root/config.h.in
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-06-18 14:33:39 -0700
committerChris Robinson <[email protected]>2013-06-18 14:33:39 -0700
commita9fac129696731bb307a72e8ae6c95e474587221 (patch)
treef4490b953f6415445123e411fd8f6b5e54930b4a /config.h.in
parent3c90ed95afa1feed70e6c5655cfeec096c00c23b (diff)
Work around some problems with KDevelop's parser
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index 1e068ad0..9fee8bd5 100644
--- a/config.h.in
+++ b/config.h.in
@@ -5,6 +5,12 @@
/* Define to the library version */
#define ALSOFT_VERSION "${LIB_VERSION}"
+#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
+
/* Define any available alignment declaration */
#define ALIGN(x) ${ALIGN_DECL}
#ifdef __MINGW32__