Cleanup: Removed redundant processing of OS name

This commit is contained in:
Paul Beckingham 2016-02-24 23:43:23 -05:00
parent 88bd2fc9e2
commit abefdd506c
4 changed files with 34 additions and 52 deletions

View file

@ -79,31 +79,7 @@ int CmdDiagnostics::execute (std::string& output)
<< bold.colorize (PACKAGE_STRING)
<< "\n";
out << " " << STRING_CMD_DIAG_PLATFORM << ": "
<<
#if defined (DARWIN)
"Darwin"
#elif defined (SOLARIS)
"Solaris"
#elif defined (CYGWIN)
"Cygwin"
#elif defined (HAIKU)
"Haiku"
#elif defined (OPENBSD)
"OpenBSD"
#elif defined (FREEBSD)
"FreeBSD"
#elif defined (NETBSD)
"NetBSD"
#elif defined (LINUX)
"Linux"
#elif defined (KFREEBSD)
"GNU/kFreeBSD"
#elif defined (GNUHURD)
"GNU/Hurd"
#else
STRING_CMD_DIAG_UNKNOWN
#endif
out << " " << STRING_CMD_DIAG_PLATFORM << ": " << osName ()
<< "\n\n";
// Compiler.