summaryrefslogtreecommitdiffstats
path: root/Alc/mixer_sse.c
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 /Alc/mixer_sse.c
parent3c90ed95afa1feed70e6c5655cfeec096c00c23b (diff)
Work around some problems with KDevelop's parser
Diffstat (limited to 'Alc/mixer_sse.c')
-rw-r--r--Alc/mixer_sse.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Alc/mixer_sse.c b/Alc/mixer_sse.c
index 95893277..f929469c 100644
--- a/Alc/mixer_sse.c
+++ b/Alc/mixer_sse.c
@@ -1,6 +1,13 @@
#include "config.h"
#ifdef HAVE_XMMINTRIN_H
+#ifdef IN_IDE_PARSER
+/* KDevelop's parser won't recognize these defines that get added by the -msse
+ * switch used to compile this source. Without them, xmmintrin.h fails to
+ * declare anything. */
+#define __MMX__
+#define __SSE__
+#endif
#include <xmmintrin.h>
#endif