[gnome-games] be sure to #include <locale.h>
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] be sure to #include <locale.h>
- Date: Fri, 3 Feb 2012 19:04:30 +0000 (UTC)
commit d36224c16a806bc71fb5e03bd4d61582628f516c
Author: Ryan Lortie <desrt desrt ca>
Date: Fri Feb 3 14:02:46 2012 -0500
be sure to #include <locale.h>
060745ece48d6fc54fc456619a72650b71c18932 added a bunch of setlocale()
calls around, but we should #include <locale.h> before these.
For some reason this didn't cause trouble on Ubuntu, but on Fedora, we
ended up with undefined LC_ALL and a broken build.
glines/src/glines.c | 3 ++-
gnect/src/main.c | 1 +
gnibbles/src/main.c | 1 +
gnobots2/src/gnobots.c | 1 +
gnotski/src/gnotski.c | 1 +
gtali/src/gyahtzee.c | 1 +
6 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/glines/src/glines.c b/glines/src/glines.c
index 3eb34a6..713ef33 100644
--- a/glines/src/glines.c
+++ b/glines/src/glines.c
@@ -26,7 +26,8 @@
#include <config.h>
-#include <stdlib.h>
+#include <stdlib.h>
+#include <locale.h>
#include <math.h>
#include <glib.h>
diff --git a/gnect/src/main.c b/gnect/src/main.c
index 7925873..1e584af 100644
--- a/gnect/src/main.c
+++ b/gnect/src/main.c
@@ -24,6 +24,7 @@
#include <config.h>
#include <stdlib.h>
+#include <locale.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
diff --git a/gnibbles/src/main.c b/gnibbles/src/main.c
index 73ff5ab..5e47b2a 100644
--- a/gnibbles/src/main.c
+++ b/gnibbles/src/main.c
@@ -25,6 +25,7 @@
#include <string.h>
#include <time.h>
#include <stdlib.h>
+#include <locale.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
diff --git a/gnobots2/src/gnobots.c b/gnobots2/src/gnobots.c
index fccff3c..ef29ff0 100644
--- a/gnobots2/src/gnobots.c
+++ b/gnobots2/src/gnobots.c
@@ -24,6 +24,7 @@
#include <sys/time.h>
#include <string.h>
#include <stdlib.h>
+#include <locale.h>
#include <glib/gi18n.h>
#include <glib.h>
diff --git a/gnotski/src/gnotski.c b/gnotski/src/gnotski.c
index f27ad8e..e55544b 100644
--- a/gnotski/src/gnotski.c
+++ b/gnotski/src/gnotski.c
@@ -23,6 +23,7 @@
#include <string.h>
#include <stdlib.h>
+#include <locale.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
diff --git a/gtali/src/gyahtzee.c b/gtali/src/gyahtzee.c
index f3ce092..34ce222 100644
--- a/gtali/src/gyahtzee.c
+++ b/gtali/src/gyahtzee.c
@@ -39,6 +39,7 @@
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
+#include <locale.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]