Commit c5e989c6 authored by Chun-wei Fan's avatar Chun-wei Fan

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.
parent 1c803506
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment