diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-01-05 14:28:47 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-01-05 14:29:48 +0200 |
commit | 53ab5419843aab2ddda25bfa96e228af8beeead8 (patch) | |
tree | 44da2f4fa1ee9b193bc9b2edc2eb1141e8b2863d /system.h | |
parent | 78335417a01caa3c079afe24258efcf4875820ee (diff) | |
download | rpm-53ab5419843aab2ddda25bfa96e228af8beeead8.tar.gz rpm-53ab5419843aab2ddda25bfa96e228af8beeead8.tar.bz2 rpm-53ab5419843aab2ddda25bfa96e228af8beeead8.zip |
Remove unnecessary NLS definitions from system.h
- all uses of dgettext() and friends are already protected by
appropriate ifdef's, no need to provide dummy defines here
- setlocale() and <locale.h> are required by C89, C99 and POSIX .. assume
its there and if not, one can disable the whole thing with --disable-nls
Diffstat (limited to 'system.h')
-rw-r--r-- | system.h | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -154,25 +154,12 @@ typedef char * security_context_t; extern const char *__progname; /* Take care of NLS matters. */ - -#if HAVE_LOCALE_H -# include <locale.h> -#endif -#if !HAVE_SETLOCALE -# define setlocale(Category, Locale) /* empty */ -#endif - #if ENABLE_NLS +# include <locale.h> # include <libintl.h> # define _(Text) dgettext (PACKAGE, Text) #else -# undef bindtextdomain -# define bindtextdomain(Domain, Directory) /* empty */ -# undef textdomain -# define textdomain(Domain) /* empty */ # define _(Text) Text -# undef dgettext -# define dgettext(DomainName, Text) Text #endif #define N_(Text) Text |