From 1ea2fa447acb0e723bd202219b5b5b9a9db3d29a Mon Sep 17 00:00:00 2001
From: mazmazz <mar.marcoz@outlook.com>
Date: Wed, 5 Dec 2018 13:00:42 -0500
Subject: [PATCH] Make the ifdefs cleaner

---
 src/d_netcmd.c | 34 ++++++++++------------------------
 1 file changed, 10 insertions(+), 24 deletions(-)

diff --git a/src/d_netcmd.c b/src/d_netcmd.c
index a3604ac9ea..2e5db3ea3b 100644
--- a/src/d_netcmd.c
+++ b/src/d_netcmd.c
@@ -3427,51 +3427,37 @@ static void Command_Version_f(void)
 #endif
 
 	// Base library
-#ifdef HAVE_SDL
+#if defined( HAVE_SDL)
 	CONS_Printf("SDL ");
-#else
-#ifdef _WINDOWS
+#elif defined(_WINDOWS)
 	CONS_Printf("DD ");
-#endif
 #endif
 
 	// OS
 	// Would be nice to use SDL_GetPlatform for this
-#ifdef _WIN32
+#if defined(_WIN32)
 	CONS_Printf("Windows ");
-#else
-#ifdef LINUX
+#elif defined(LINUX)
 	CONS_Printf("Linux ");
-#else
-#ifdef MACOSX
+#elif defined(MACOSX)
 	CONS_Printf("macOS" );
-#else
-#ifdef UNIXCOMMON
+#elif defined(UNIXCOMMON)
 	CONS_Printf("Unix (Common) ");
 #else
 	CONS_Printf("Other OS ");
-#endif
-#endif
-#endif
 #endif
 
 	// Bitness
-#ifdef _WIN64
+#if defined(_WIN64)
 	CONS_Printf("x64 ");
-#else
-#ifdef _WIN32
+#elif defined(_WIN32)
 	CONS_Printf("x86 ");
-#else
-#ifdef NONX86
+#elif defined(NONX86)
 	CONS_Printf("Non-x86 ");
-#else
-#ifdef LINUX
+#elif defined(LINUX)
 	CONS_Printf("x86 ");
 #else
 	CONS_Printf("Bits Unknown ");
-#endif
-#endif
-#endif
 #endif
 
 	// No ASM?
-- 
GitLab