From ce925ba56fdcdf6168db7597185f6c34643a7501 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 17 Feb 2014 22:48:26 +0100 Subject: fs/Charset: disable if GLib is disabled --- src/fs/AllocatedPath.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/fs/AllocatedPath.cxx') diff --git a/src/fs/AllocatedPath.cxx b/src/fs/AllocatedPath.cxx index 6770fa1b0..30ce7e3a9 100644 --- a/src/fs/AllocatedPath.cxx +++ b/src/fs/AllocatedPath.cxx @@ -24,22 +24,32 @@ #include "util/Error.hxx" #include "Compiler.h" +#ifdef HAVE_GLIB #include +#endif #include +#ifdef HAVE_GLIB + inline AllocatedPath::AllocatedPath(Donate, pointer _value) :value(_value) { g_free(_value); } +#endif + /* no inlining, please */ AllocatedPath::~AllocatedPath() {} AllocatedPath AllocatedPath::FromUTF8(const char *path_utf8) { +#ifdef HAVE_GLIB return AllocatedPath(Donate(), ::PathFromUTF8(path_utf8)); +#else + return FromFS(path_utf8); +#endif } AllocatedPath -- cgit v1.2.3