From 8b1fb61df26649e1dec626ef9120fc787a831fcc Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 22 Oct 2007 23:52:55 -0500 Subject: Ensure all localization stuff is correctly guarded Anything dealing with libintl and localization should be correctly guarded inside an ENABLE_NLS block on both the pacman and libalpm sides. Signed-off-by: Dan McGee --- lib/libalpm/alpm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/libalpm/alpm.c') diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index 20d4a746..7bbcc869 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -52,7 +52,10 @@ int SYMEXPORT alpm_initialize(void) if(handle == NULL) { RET_ERR(PM_ERR_MEMORY, -1); } + +#ifdef ENABLE_NLS bindtextdomain("libalpm", LOCALEDIR); +#endif return(0); } -- cgit v1.2.3-24-g4f1b