From 2ba66d052568e5047ce87bd30754a1ffa384c0e3 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 31 Dec 2016 16:21:55 -0800 Subject: [PATCH] Fixed bug 3535 - Misplaced comment #if/#endif closure comment Coriiander This notice is about a misplaced comment. Often times when we use an #if #endif sequence, the #endif is followed by a comment to indicate what #if statement it belonged to. The SDL_xaudio2.c file contains a misplaced comment, as follows (I stripped the other comments): #ifdef __GNUC__ # define SDL_XAUDIO2_HAS_SDK 1 #elif defined(__WINRT__) # define SDL_XAUDIO2_HAS_SDK #include "SDL_xaudio2.h" #else #if 0 #include #if (!defined(_DXSDK_BUILD_MAJOR) || (_DXSDK_BUILD_MAJOR < 1284)) # pragma message("Your DirectX SDK is too old. Disabling XAudio2 support.") #else # define SDL_XAUDIO2_HAS_SDK 1 #endif #endif #endif /* 0 */ That final /* 0 */ should be moved one line up. Like this (I tabbed it out for you to make it more clear): --- src/audio/xaudio2/SDL_xaudio2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/xaudio2/SDL_xaudio2.c b/src/audio/xaudio2/SDL_xaudio2.c index a18e5d24e..b659c80f6 100644 --- a/src/audio/xaudio2/SDL_xaudio2.c +++ b/src/audio/xaudio2/SDL_xaudio2.c @@ -78,8 +78,8 @@ #else # define SDL_XAUDIO2_HAS_SDK 1 #endif -#endif #endif /* 0 */ +#endif /* __GNUC__ */ #ifdef SDL_XAUDIO2_HAS_SDK