From ba1574e65a210478b84a3434cd817c9030f78d08 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 5 May 2016 10:36:53 -0700 Subject: [PATCH] Don't define OpenAL redirect macros with the IDE's parser At least with KDevelop4, macros like this interefere with contextual info by causing it to show information about the macro itself (where it's defined and what it defines to), rather than the function (parameters, comments, etc). It also gets in the way of auto-completion. --- src/sound/oalload.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sound/oalload.h b/src/sound/oalload.h index 986131b2c..3cee30d58 100644 --- a/src/sound/oalload.h +++ b/src/sound/oalload.h @@ -22,7 +22,7 @@ static oalloadentry oalfuncs[] = { { NULL, 0 } }; - +#ifndef IN_IDE_PARSER #define alEnable p_alEnable #define alDisable p_alDisable #define alIsEnabled p_alIsEnabled @@ -116,6 +116,7 @@ static oalloadentry oalfuncs[] = { #define alcCaptureStart p_alcCaptureStart #define alcCaptureStop p_alcCaptureStop #define alcCaptureSamples p_alcCaptureSamples +#endif #endif -#endif \ No newline at end of file +#endif