mirror of
https://github.com/GothenburgBitFactory/taskshell.git
synced 2025-07-07 20:06:42 +02:00
diag: Migrated to libshared osName
This commit is contained in:
parent
f48b17cddb
commit
0be6d781bd
1 changed files with 2 additions and 27 deletions
29
src/diag.cpp
29
src/diag.cpp
|
@ -48,33 +48,8 @@ int cmdDiagnostics ()
|
||||||
|
|
||||||
std::cout << "\n"
|
std::cout << "\n"
|
||||||
<< bold.colorize (PACKAGE_STRING)
|
<< bold.colorize (PACKAGE_STRING)
|
||||||
<< "\n";
|
<< "\n"
|
||||||
|
<< " " << "Platform: " << osName ()
|
||||||
std::cout << " " << "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)
|
|
||||||
TRING_CMD_DIAG_COMPILER
|
|
||||||
#elif defined (GNUHURD)
|
|
||||||
"GNU/Hurd"
|
|
||||||
#else
|
|
||||||
"Unknown"
|
|
||||||
#endif
|
|
||||||
<< "\n\n";
|
<< "\n\n";
|
||||||
|
|
||||||
// Compiler.
|
// Compiler.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue