mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 00:57:19 +02:00
util: Migrated osName to libshared
This commit is contained in:
parent
b65be6655b
commit
ec1323d9ee
4 changed files with 2 additions and 31 deletions
28
src/util.cpp
28
src/util.cpp
|
@ -258,34 +258,6 @@ 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
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool nontrivial (const std::string& input)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue