[gcompris] Fixed windows compilation issue.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris] Fixed windows compilation issue.
- Date: Thu, 15 Aug 2013 07:24:26 +0000 (UTC)
commit 7bc424a0b18e0770815ff91b677c304048ad89a2
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Thu Aug 15 08:29:14 2013 +0200
Fixed windows compilation issue.
On windows we don't do DLLs so all local variables
must be unique globally or declared static.
src/gletters-activity/gletters.c | 2 +-
src/wordsgame-activity/wordsgame.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gletters-activity/gletters.c b/src/gletters-activity/gletters.c
index 6a9ed57..609fa98 100644
--- a/src/gletters-activity/gletters.c
+++ b/src/gletters-activity/gletters.c
@@ -29,7 +29,7 @@ static GcomprisWordlist *gc_wordlist = NULL;
#if GLIB_CHECK_VERSION(2, 31, 0)
static GMutex items_lock; /* No init needed for static GMutexes */
#else
-GStaticMutex items_lock = G_STATIC_MUTEX_INIT;
+static GStaticMutex items_lock = G_STATIC_MUTEX_INIT;
#endif
/*
diff --git a/src/wordsgame-activity/wordsgame.c b/src/wordsgame-activity/wordsgame.c
index 055e260..41e581b 100644
--- a/src/wordsgame-activity/wordsgame.c
+++ b/src/wordsgame-activity/wordsgame.c
@@ -29,7 +29,7 @@ static GcomprisWordlist *gc_wordlist = NULL;
#if GLIB_CHECK_VERSION(2, 31, 0)
static GMutex items_lock; /* No init needed for static GMutexes */
#else
-GStaticMutex items_lock = G_STATIC_MUTEX_INIT;
+static GStaticMutex items_lock = G_STATIC_MUTEX_INIT;
#endif
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]