From 75efcbbff6a9e1db543f04693f70780413369a85 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 26 Apr 2007 19:39:53 -0400 Subject: Clean up gettext on the libalpm side Remove inclusion of libintl.h from all files, because we can do it once in util.c where the _() macro is defined. Signed-off-by: Dan McGee --- src/pacman/util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/pacman/util.h') diff --git a/src/pacman/util.h b/src/pacman/util.h index d6c33ed4..45c8b07d 100644 --- a/src/pacman/util.h +++ b/src/pacman/util.h @@ -31,7 +31,11 @@ #define UPDATE_SPEED_SEC 0.2f /* define _() as shortcut for gettext() */ +#ifdef ENABLE_NLS #define _(str) gettext(str) +#else +#define _(str) str +#endif int getcols(); int makepath(char *path); -- cgit v1.2.3