Fix compilation on MSVC, which doesn't understand "inline" with its C99 meaning.
[platform/upstream/dbus.git] / bus / bus.c
index f805e3f..6b0dc08 100644 (file)
--- a/bus/bus.c
+++ b/bus/bus.c
@@ -1320,12 +1320,7 @@ out:
   va_end (args);
 }
 
-/* TODO: move to autotools generated config.h like done in cmake */
-#ifndef DBUS_INLINE
-#define DBUS_INLINE inline
-#endif
-
-static DBUS_INLINE const char *
+static inline const char *
 nonnull (const char *maybe_null,
          const char *if_null)
 {