dbus: add a few directory separator macros

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2022-02-09 11:54:52 +04:00 committed by Simon McVittie
parent dcdb992dd2
commit 95f4cf53fe

View 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