]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
dbus: add a few directory separator macros
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 9 Feb 2022 07:54:52 +0000 (11:54 +0400)
committerSimon McVittie <smcv@collabora.com>
Fri, 15 Jul 2022 15:26:54 +0000 (16:26 +0100)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
dbus/dbus-internals.h

index 4f29b239b2868fc8d2002be8f36d27f25fe87ff5..c7967d241feb8455d029d0e8f28eabc6094c4258 100644 (file)
@@ -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