mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Cleanup: Removed redundant processing of OS name
This commit is contained in:
parent
bfefd247c4
commit
549b970e49
4 changed files with 34 additions and 52 deletions
27
src/util.cpp
27
src/util.cpp
|
@ -484,4 +484,31 @@ time_t timegm (struct tm *tm)
|
|||
#endif
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string osName ()
|
||||
{
|
||||
#if defined (DARWIN)
|
||||
return "Darwin";
|
||||
#elif defined (SOLARIS)
|
||||
return "Solaris";
|
||||
#elif defined (CYGWIN)
|
||||
return "Cygwin";
|
||||
#elif defined (HAIKU)
|
||||
return "Haiku";
|
||||
#elif defined (OPENBSD)
|
||||
return "OpenBSD";
|
||||
#elif defined (FREEBSD)
|
||||
return "FreeBSD";
|
||||
#elif defined (NETBSD)
|
||||
return "NetBSD";
|
||||
#elif defined (LINUX)
|
||||
return "Linux";
|
||||
#elif defined (KFREEBSD)
|
||||
return "GNU/kFreeBSD";
|
||||
#elif defined (GNUHURD)
|
||||
return "GNU/Hurd";
|
||||
#else
|
||||
return STRING_DOM_UNKNOWN;
|
||||
#endif
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue