mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-11 19:54:05 +02: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:
@@ -1209,7 +1209,7 @@ parse_arg (GOptionContext *context,
|
|||||||
{
|
{
|
||||||
gchar *data;
|
gchar *data;
|
||||||
|
|
||||||
#if G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
if (!context->strv_mode)
|
if (!context->strv_mode)
|
||||||
data = g_locale_to_utf8 (value, -1, NULL, NULL, error);
|
data = g_locale_to_utf8 (value, -1, NULL, NULL, error);
|
||||||
else
|
else
|
||||||
@@ -1235,7 +1235,7 @@ parse_arg (GOptionContext *context,
|
|||||||
{
|
{
|
||||||
gchar *data;
|
gchar *data;
|
||||||
|
|
||||||
#if G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
if (!context->strv_mode)
|
if (!context->strv_mode)
|
||||||
data = g_locale_to_utf8 (value, -1, NULL, NULL, error);
|
data = g_locale_to_utf8 (value, -1, NULL, NULL, error);
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user