summaryrefslogtreecommitdiff
path: root/gio/gdbusauthmechanismexternal.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2010-06-22 12:13:21 +0300
committerTor Lillqvist <tml@iki.fi>2010-06-22 12:22:46 +0300
commitefb1a054b0858b4475941892f53bbc5186065df9 (patch)
tree7a9fac981694abadffa4fb133f570e734a9e395b /gio/gdbusauthmechanismexternal.c
parent2e842490826644210bc5d2df2df8092597b3f708 (diff)
downloadglib-efb1a054b0858b4475941892f53bbc5186065df9.tar.gz
Fix build with the Microsoft compiler
Correct a few gccisms and C99isms. Ensure the Windows-specific gio source files are listed in the generated gio VS project file.
Diffstat (limited to 'gio/gdbusauthmechanismexternal.c')
-rw-r--r--gio/gdbusauthmechanismexternal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gio/gdbusauthmechanismexternal.c b/gio/gdbusauthmechanismexternal.c
index 46d393147..ce6484e43 100644
--- a/gio/gdbusauthmechanismexternal.c
+++ b/gio/gdbusauthmechanismexternal.c
@@ -352,7 +352,9 @@ mechanism_client_initiate (GDBusAuthMechanism *mechanism,
#if defined(G_OS_UNIX)
initial_response = g_strdup_printf ("%" G_GINT64_FORMAT, (gint64) g_credentials_get_unix_user (credentials, NULL));
#elif defined(G_OS_WIN32)
+#ifdef __GNUC__
#warning Dont know how to send credentials on this OS. The EXTERNAL D-Bus authentication mechanism will not work.
+#endif
m->priv->state = G_DBUS_AUTH_MECHANISM_STATE_REJECTED;
#endif
return initial_response;