[gnome-games] aisleriot: glib < 2.16 build fix
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games] aisleriot: glib < 2.16 build fix
- Date: Thu, 9 Jul 2009 23:12:51 +0000 (UTC)
commit aa01c430a85d9b0974a424b54f8c1250f86a935a
Author: Christian Persch <chpe gnome org>
Date: Sat Jul 4 21:32:04 2009 +0200
aisleriot: glib < 2.16 build fix
Add compatibiliy function since C_() is only available since 2.16.
aisleriot/window.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/aisleriot/window.c b/aisleriot/window.c
index d314af3..071dc9e 100644
--- a/aisleriot/window.c
+++ b/aisleriot/window.c
@@ -83,6 +83,10 @@
#define SELECT_GAME_DIALOG_MIN_HEIGHT (256)
+#if !GLIB_CHECK_VERSION (2, 16, 0)
+#define C_(context, string) (_(string))
+#endif
+
/* define this to enable a debug menu */
/* #undef ENABLE_DEBUG_UI */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]