Make the ifdefs cleaner

This commit is contained in:
mazmazz 2018-12-05 13:00:42 -05:00
parent 389c2d4ea1
commit 1ea2fa447a

View file

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