From 396dd7f191773a903dc13f476e0f968dc1645407 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Sun, 14 Feb 2010 15:20:30 +0100 Subject: Let xload build on systems without gettext(). Signed-off-by: Matthieu Herrb Reviewed-by: Julien Cristau Reviewed-by: Alan Coopersmith --- xload.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xload.c') diff --git a/xload.c b/xload.c index 849f8e2..01a42c3 100644 --- a/xload.c +++ b/xload.c @@ -207,12 +207,14 @@ main(int argc, char **argv) toplevel = XtAppInitialize(&app_con, "XLoad", options, XtNumber(options), &argc, argv, NULL, NULL, (Cardinal) 0); +#ifdef USE_GETTEXT textdomain("xload"); if ((domaindir = getenv ( "TEXTDOMAINDIR" )) == NULL) { domaindir = LOCALEDIR; } bindtextdomain("xload", domaindir); +#endif if (argc != 1) usage(); -- cgit v1.2.3