From 0cf4829cd0a704ff1e39834d246ee35be5ee8b13 Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Thu, 26 Jul 2001 14:44:04 +0000 Subject: Make unconditional gettext conditional. --- lib/plpintl.h | 2 ++ plpftp/main.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/plpintl.h b/lib/plpintl.h index f1caa62..cd97428 100644 --- a/lib/plpintl.h +++ b/lib/plpintl.h @@ -19,9 +19,11 @@ extern inline char * stpcpy(char *dest, const char *src) { #if defined(ENABLE_NLS) && defined(HAVE_GETTEXT) # include +# define X_(x) gettext(x) # define N_(x) (x) # define _(x) gettext(x) #else +# define X_(x) (x) # define N_(x) (x) # define _(x) (x) # define textdomain(x) diff --git a/plpftp/main.cc b/plpftp/main.cc index 711cdbb..9ff50d7 100644 --- a/plpftp/main.cc +++ b/plpftp/main.cc @@ -111,7 +111,7 @@ main(int argc, char **argv) delete skt; delete skt2; } else { - cerr << "plpftp: " << gettext(rf->getError()) << endl; + cerr << "plpftp: " << X_(rf->getError()) << endl; status = 1; } delete rf; -- cgit v1.2.3