From f0c679e3bf6a5101c7301cd74feb11b3b73ace52 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 31 Mar 2008 03:52:57 +0000 Subject: [PATCH] Simple fixes to help building GLib on embedded systems without NLS. 2008-03-30 Matthias Clasen * glib/glibintl.h: * glib/gstrfuncs.c: * glib/gutils.c: Simple fixes to help building GLib on embedded systems without NLS. (#524350, Peter Kjellerstedt) svn path=/trunk/; revision=6779 --- ChangeLog | 9 ++++++++- glib/glibintl.h | 1 + glib/gstrfuncs.c | 2 +- glib/gutils.c | 1 - 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ba28ad44..fc667097 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-03-30 Matthias Clasen + + * glib/glibintl.h: + * glib/gstrfuncs.c: + * glib/gutils.c: Simple fixes to help building GLib on + embedded systems without NLS. (#524350, Peter Kjellerstedt) + 2008-03-30 Matthias Clasen * glib/ghash.c: Fix the build with -DG_DISABLE_ASSERT. @@ -6,7 +13,7 @@ 2008-03-30 Matthias Clasen * glib/gthread.h: Replace occurrances of G_GNUC_PRETTY_FUNCTION - by G_STRFUNC. (#524344, Peter, Kjellerstedt) + by G_STRFUNC. (#524344, Peter Kjellerstedt) 2008-03-30 Matthias Clasen diff --git a/glib/glibintl.h b/glib/glibintl.h index 8e6cdf08..4bed7c14 100644 --- a/glib/glibintl.h +++ b/glib/glibintl.h @@ -27,6 +27,7 @@ G_CONST_RETURN gchar *glib_gettext (const gchar *str); #define gettext(String) (String) #define dgettext(Domain,String) (String) #define dcgettext(Domain,String,Type) (String) +#define dngettext(Domain,String1,String2,N) ((N) == 1 ? (String1) : (String2)) #define bindtextdomain(Domain,Directory) (Domain) #endif diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c index 6d603816..74419d9a 100644 --- a/glib/gstrfuncs.c +++ b/glib/gstrfuncs.c @@ -42,11 +42,11 @@ #if !defined (HAVE_STRSIGNAL) || !defined(NO_SYS_SIGLIST_DECL) #include #endif -#include #include "glib.h" #include "gprintf.h" #include "gprintfint.h" +#include "glibintl.h" #include "galias.h" diff --git a/glib/gutils.c b/glib/gutils.c index f9f6e072..d7eb1699 100644 --- a/glib/gutils.c +++ b/glib/gutils.c @@ -36,7 +36,6 @@ #include #include #include -#include #include #include #include /* For tolower() */ -- 2.34.1