[glib] gdatetime: Don't include langinfo.h unconditionally



commit d617091d8005279cb055e3de125f41898b427e24
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Aug 22 22:01:39 2011 -0400

    gdatetime: Don't include langinfo.h unconditionally
    
    It doesn't exist on Windows.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=657083

 glib/gdatetime.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/glib/gdatetime.c b/glib/gdatetime.c
index e92c68c..5a486b2 100644
--- a/glib/gdatetime.c
+++ b/glib/gdatetime.c
@@ -53,7 +53,10 @@
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
+
+#ifdef HAVE_LANGINFO_TIME
 #include <langinfo.h>
+#endif
 
 #include "gdatetime.h"
 



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