summaryrefslogtreecommitdiff
path: root/glib/gtestutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'glib/gtestutils.h')
-rw-r--r--glib/gtestutils.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/glib/gtestutils.h b/glib/gtestutils.h
index 969c69dda..9a860ad28 100644
--- a/glib/gtestutils.h
+++ b/glib/gtestutils.h
@@ -238,10 +238,22 @@ typedef void (*GTestFixtureFunc) (gpointer fixture,
} G_STMT_END
#endif /* !G_DISABLE_ASSERT */
+#if defined(_MSC_VER)
+
+GLIB_AVAILABLE_IN_ALL
+int g_strcmp0 (const char *str1,
+ const char *str2);
+
+#else
+
#ifndef GLIB_INLINE
-#define GLIB_INLINE
+#define GLIB_INLINE inline
#endif
+#endif
+
+#if defined(GLIB_INLINE) || defined(__GTK_DOC_IGNORE__)
+
GLIB_INLINE int
g_strcmp0 (const char *str1,
const char *str2)
@@ -253,6 +265,8 @@ g_strcmp0 (const char *str1,
return strcmp (str1, str2);
}
+#endif
+
/* report performance results */
GLIB_AVAILABLE_IN_ALL
void g_test_minimized_result (double minimized_quantity,