diff --git a/ChangeLog b/ChangeLog index ba28ad44a..fc6670972 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 8e6cdf082..4bed7c144 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 6d6038161..74419d9ad 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 f9f6e072c..d7eb1699d 100644 --- a/glib/gutils.c +++ b/glib/gutils.c @@ -36,7 +36,6 @@ #include #include #include -#include #include #include #include /* For tolower() */