[evolution] Bug 783191 - Fix conditional to prevent a compiler warning



commit bba6b8109ee3ae224a488d9f11f458651a4f2b52
Author: Antoine Jacoutot <ajacoutot gnome org>
Date:   Tue May 30 14:18:49 2017 +0200

    Bug 783191 - Fix conditional to prevent a compiler warning
    
    The warning was:
    warning: "HAVE__NL_MEASUREMENT_MEASUREMENT" is not defined

 .../evolution-cal-config-weather.c                 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/modules/cal-config-weather/evolution-cal-config-weather.c 
b/src/modules/cal-config-weather/evolution-cal-config-weather.c
index e431674..665019e 100644
--- a/src/modules/cal-config-weather/evolution-cal-config-weather.c
+++ b/src/modules/cal-config-weather/evolution-cal-config-weather.c
@@ -28,7 +28,7 @@
 
 #include <e-util/e-util.h>
 
-#if HAVE_NL_LANGINFO
+#if defined(HAVE_NL_LANGINFO)
 #include <langinfo.h>
 #endif
 
@@ -170,7 +170,7 @@ is_locale_metric (void)
 {
        const gchar *fmt;
 
-#if HAVE_NL_LANGINFO && HAVE__NL_MEASUREMENT_MEASUREMENT
+#if defined(HAVE_NL_LANGINFO) && defined(HAVE__NL_MEASUREMENT_MEASUREMENT)
        fmt = nl_langinfo (_NL_MEASUREMENT_MEASUREMENT);
 
        if (fmt && *fmt == 2)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]