Build _dbus_string_starts_with_c_str even if not building tests
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 27 Mar 2012 16:19:44 +0000 (17:19 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 27 Mar 2012 16:19:44 +0000 (17:19 +0100)
It's used by the own_prefix implementation.

dbus/dbus-string.c

index 85738c2..9accdb1 100644 (file)
@@ -2182,7 +2182,6 @@ _dbus_string_equal_c_str (const DBusString *a,
   return TRUE;
 }
 
-#ifdef DBUS_BUILD_TESTS
 /**
  * Checks whether a string starts with the given C string.
  *
@@ -2218,7 +2217,6 @@ _dbus_string_starts_with_c_str (const DBusString *a,
   else
     return FALSE;
 }
-#endif /* DBUS_BUILD_TESTS */
 
 /**
  * Appends a two-character hex digit to a string, where the hex digit