diff --git a/src/d_main.c b/src/d_main.c
index 149e050c7450dd402a4176fd35de05204b1a2265..2a5993c1776ab4e1d8de58e106912af91cadb14e 100644
--- a/src/d_main.c
+++ b/src/d_main.c
@@ -936,7 +936,6 @@ static void IdentifyVersion(void)
 #endif
 
 #if !defined (HAVE_SDL) || defined (HAVE_MIXER)
-	{
 #define MUSICTEST(str) \
 	{\
 		const char *musicpath = va(pandf,srb2waddir,str);\
@@ -946,9 +945,9 @@ static void IdentifyVersion(void)
 		else if (ms == 0) \
 			I_Error("File "str" has been modified with non-music/sound lumps"); \
 	}
-		MUSICTEST("sounds.kart")
-		MUSICTEST("music.kart")
-	}
+	MUSICTEST("sounds.kart")
+	MUSICTEST("music.kart")
+#undef MUSICTEST
 #endif
 }