From: Marc-André Lureau Date: Wed, 9 Feb 2022 07:54:52 +0000 (+0400) Subject: dbus: add a few directory separator macros X-Git-Tag: dbus-1.15.0~26^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95f4cf53fe5e156f0144dbd68badb1ed3a32934b;p=thirdparty%2Fdbus.git dbus: add a few directory separator macros Signed-off-by: Marc-André Lureau --- diff --git a/dbus/dbus-internals.h b/dbus/dbus-internals.h index 4f29b239b..c7967d241 100644 --- a/dbus/dbus-internals.h +++ b/dbus/dbus-internals.h @@ -493,8 +493,12 @@ dbus_bool_t _dbus_get_local_machine_uuid_encoded (DBusString *uuid_str, */ #ifdef DBUS_WIN #define DBUS_IS_DIR_SEPARATOR(c) (c == '\\' || c == '/') +#define DBUS_DIR_SEPARATOR '\\' +#define DBUS_DIR_SEPARATOR_S "\\" #else #define DBUS_IS_DIR_SEPARATOR(c) (c == '/') +#define DBUS_DIR_SEPARATOR '/' +#define DBUS_DIR_SEPARATOR_S "/" #endif DBUS_END_DECLS