[glib] glib/goption.c: Fix build on MSVC
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] glib/goption.c: Fix build on MSVC
- Date: Thu, 23 Jan 2014 09:33:01 +0000 (UTC)
commit c5e989c6d8d13542fcdd47905e98c980d7d7603d
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Jan 23 17:32:50 2014 +0800
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.
glib/goption.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/goption.c b/glib/goption.c
index 137ba31..a7ad7c6 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]