grim/guifications2

[gf2-migrate @ 143]
org.guifications.gf2
2006-10-19, Stu Tomlinson
4aac8f96067d
Parents 495c98f1b3c6
Children 9e91f324afae
[gf2-migrate @ 143]
Fix for really old glib
--- a/src/gf_internal.h Thu Oct 19 14:30:47 2006 -0400
+++ b/src/gf_internal.h Thu Oct 19 15:43:51 2006 -0400
@@ -21,7 +21,19 @@
#include <glib.h>
+#if GLIB_CHECK_VERSION(2,4,0)
#include <glib/gi18n-lib.h>
+#else
+#include <locale.h>
+#include <libintl.h>
+#define _(String) dgettext (GETTEXT_PACKAGE, String)
+#define Q_(String) g_strip_context ((String), dgettext (GETTEXT_PACKAGE, String))
+#ifdef gettext_noop
+#define N_(String) gettext_noop (String)
+#else
+#define N_(String) (String)
+#endif
+#endif
#if GLIB_CHECK_VERSION(2,6,0)
# include <glib/gstdio.h>