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

index ea0ffdd57d44e6f29cd4377cbe2e71ce500d2194..2c4336773b3d8067206ee072d4f757a4484c2049 100644 (file)
@@ -334,18 +334,7 @@ _dbus_verbose_init (void)
     }
 }
 
-/** @def DBUS_IS_DIR_SEPARATOR(c)
- * macro for checking if character c is a patch separator
- * 
- * @todo move to a header file so that others can use this too
- */
-#ifdef DBUS_WIN 
-#define DBUS_IS_DIR_SEPARATOR(c) (c == '\\' || c == '/')
-#else
-#define DBUS_IS_DIR_SEPARATOR(c) (c == '/')
-#endif
-
-/** 
+/**
  remove source root from file path 
  the source root is determined by 
 */ 
index 1272e8c5a9e8d0b5adf5a85030abf091f7162bc4..4f29b239b2868fc8d2002be8f36d27f25fe87ff5 100644 (file)
@@ -488,6 +488,15 @@ dbus_bool_t _dbus_get_local_machine_uuid_encoded (DBusString *uuid_str,
 # define _DBUS_END_IGNORE_LEAKS do { } while (0)
 #endif
 
+/** @def DBUS_IS_DIR_SEPARATOR(c)
+ * macro for checking if character c is a path separator
+ */
+#ifdef DBUS_WIN
+#define DBUS_IS_DIR_SEPARATOR(c) (c == '\\' || c == '/')
+#else
+#define DBUS_IS_DIR_SEPARATOR(c) (c == '/')
+#endif
+
 DBUS_END_DECLS
 
 #endif /* DBUS_INTERNALS_H */