mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-04-18 09:40:42 +02:00
dbus: add a few directory separator macros
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
dcdb992dd2
commit
95f4cf53fe
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue