From c5e989c6d8d13542fcdd47905e98c980d7d7603d Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Thu, 23 Jan 2014 17:32:50 +0800 Subject: [PATCH] glib/goption.c: Fix build on MSVC Use #ifdef rather than #if, as MSVC does not like #if without parens, and this is the normal usage in other cases like this. --- glib/goption.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/goption.c b/glib/goption.c index 137ba3184..a7ad7c6d0 100644 --- a/glib/goption.c +++ b/glib/goption.c @@ -1209,7 +1209,7 @@ parse_arg (GOptionContext *context, { gchar *data; -#if G_OS_WIN32 +#ifdef G_OS_WIN32 if (!context->strv_mode) data = g_locale_to_utf8 (value, -1, NULL, NULL, error); else @@ -1235,7 +1235,7 @@ parse_arg (GOptionContext *context, { gchar *data; -#if G_OS_WIN32 +#ifdef G_OS_WIN32 if (!context->strv_mode) data = g_locale_to_utf8 (value, -1, NULL, NULL, error); else