summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-04-26 19:39:53 -0400
committerDan McGee <dan@archlinux.org>2007-04-26 19:39:53 -0400
commit75efcbbff6a9e1db543f04693f70780413369a85 (patch)
tree0f618ec7c679803820ab37d96f093f736c42ae03 /src
parent63588aff191f5bf982cc0c8ee8af2b46de084c4b (diff)
downloadpacman-75efcbbff6a9e1db543f04693f70780413369a85.tar.xz
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 <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/util.h4
1 files changed, 4 insertions, 0 deletions
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);