summaryrefslogtreecommitdiff
path: root/system.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-01-05 14:28:47 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-01-05 14:29:48 +0200
commit53ab5419843aab2ddda25bfa96e228af8beeead8 (patch)
tree44da2f4fa1ee9b193bc9b2edc2eb1141e8b2863d /system.h
parent78335417a01caa3c079afe24258efcf4875820ee (diff)
downloadrpm-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.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/system.h b/system.h
index 25f129860..4d7a7d34c 100644
--- a/system.h
+++ b/system.h
@@ -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