mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
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:
parent
1c8035066e
commit
c5e989c6d8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user