glib/goption.c: Fix build on MSVC

Use #ifdef rather than #if, as MSVC does not like #if <macro> without
parens, and this is the normal usage in other cases like this.
This commit is contained in:
Chun-wei Fan 2014-01-23 17:32:50 +08:00
parent 1c8035066e
commit c5e989c6d8

View File

@ -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