diff options
author | Max Kellermann <max@duempel.org> | 2013-12-15 12:32:15 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-12-15 18:43:12 +0100 |
commit | d5dfe7d457b559bd9c53d65d0315c55611cc6a79 (patch) | |
tree | 42825c13cc44e4fe1272d14f9dc26f03ce0ef596 /src/system | |
parent | 0db0b4e302f82165b763da7717059911a85c370f (diff) |
configure.ac: add option "--disable-glib"
Allows building without GLib. This fails to compile currently,
because GLib is still used in the MPD core.
Diffstat (limited to 'src/system')
-rw-r--r-- | src/system/FatalError.cxx | 6 | ||||
-rw-r--r-- | src/system/FatalError.hxx | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/system/FatalError.cxx b/src/system/FatalError.cxx index 11a0944df..b54a677f2 100644 --- a/src/system/FatalError.cxx +++ b/src/system/FatalError.cxx @@ -23,7 +23,7 @@ #include "util/Domain.hxx" #include "LogV.hxx" -#ifdef WIN32 +#ifdef HAVE_GLIB #include <glib.h> #endif @@ -78,12 +78,16 @@ FatalError(const char *msg, const Error &error) FormatFatalError("%s: %s", msg, error.GetMessage()); } +#ifdef HAVE_GLIB + void FatalError(const char *msg, GError *error) { FormatFatalError("%s: %s", msg, error->message); } +#endif + void FatalSystemError(const char *msg) { diff --git a/src/system/FatalError.hxx b/src/system/FatalError.hxx index 2845359ef..4ef290714 100644 --- a/src/system/FatalError.hxx +++ b/src/system/FatalError.hxx @@ -45,9 +45,11 @@ gcc_noreturn void FatalError(const char *msg, const Error &error); +#ifdef HAVE_GLIB gcc_noreturn void FatalError(const char *msg, GError *error); +#endif /** * Call this after a system call has failed that is not supposed to |