[gcompris] minor, fixed compilation warnings



commit 796d853257d746c2569c743272355b996d177cfc
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Mon Sep 17 22:40:22 2012 +0200

    minor, fixed compilation warnings
    
    mostly missing include of stdlib.h

 src/awele-activity/awele.c             |    1 +
 src/boards/menu2.c                     |    1 +
 src/paratrooper-activity/paratrooper.c |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/awele-activity/awele.c b/src/awele-activity/awele.c
index 33c0d3d..68e5365 100644
--- a/src/awele-activity/awele.c
+++ b/src/awele-activity/awele.c
@@ -21,6 +21,7 @@
 #include <awele_utils.h>
 #include <awele.h>
 #include <string.h>
+#include <stdlib.h> /* exit realloc */
 
 static GcomprisBoard *gcomprisBoard = NULL;
 static gboolean board_paused = TRUE;
diff --git a/src/boards/menu2.c b/src/boards/menu2.c
index 59ef125..04790f7 100644
--- a/src/boards/menu2.c
+++ b/src/boards/menu2.c
@@ -22,6 +22,7 @@
  * Seen from gcompris, the menu is a board like another.
  */
 #include <string.h>
+#include <stdlib.h> /* atoi */
 
 #include "gcompris/gcompris.h"
 #include "gcompris/gcompris_config.h"
diff --git a/src/paratrooper-activity/paratrooper.c b/src/paratrooper-activity/paratrooper.c
index e361b72..77f715e 100644
--- a/src/paratrooper-activity/paratrooper.c
+++ b/src/paratrooper-activity/paratrooper.c
@@ -16,6 +16,7 @@
  *   along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <stdlib.h> /* rand */
 #include "gcompris/gcompris.h"
 
 #define SOUNDLISTFILE PACKAGE



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