util: Migrated osName to libshared
This commit is contained in:
@@ -33,8 +33,8 @@
|
||||
#include <Dates.h>
|
||||
#include <Context.h>
|
||||
#include <Task.h>
|
||||
#include <shared.h>
|
||||
#include <format.h>
|
||||
#include <util.h>
|
||||
#include <i18n.h>
|
||||
|
||||
Context context;
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
#include <RX.h>
|
||||
#include <Context.h>
|
||||
#include <i18n.h>
|
||||
#include <shared.h>
|
||||
#include <format.h>
|
||||
#include <util.h>
|
||||
#ifdef HAVE_COMMIT
|
||||
#include <commit.h>
|
||||
#endif
|
||||
|
||||
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)
|
||||
{
|
||||
|
||||
@@ -60,7 +60,6 @@ const std::vector <std::string> extractParents (
|
||||
time_t timegm (struct tm *tm);
|
||||
#endif
|
||||
|
||||
std::string osName ();
|
||||
bool nontrivial (const std::string&);
|
||||
int strippedLength (const std::string&);
|
||||
const char* optionalBlankLine ();
|
||||
|
||||
Reference in New Issue
Block a user