[glib] gdatetime: Don't include langinfo.h unconditionally
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gdatetime: Don't include langinfo.h unconditionally
- Date: Tue, 23 Aug 2011 02:03:03 +0000 (UTC)
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]