From 469d0a16138b683858a72e2d71e4abf8a7f9bc0f Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Mon, 21 May 2001 21:50:47 +0000 Subject: - Moved include/intl.h to lib/plpintl.h to fix compile of foreign progs. - Some NLS-Related fixes --- lib/plpintl.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 lib/plpintl.h (limited to 'lib/plpintl.h') diff --git a/lib/plpintl.h b/lib/plpintl.h new file mode 100644 index 0000000..f1caa62 --- /dev/null +++ b/lib/plpintl.h @@ -0,0 +1,33 @@ +#ifndef _INTL_H_ +#define _INTL_H_ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#ifndef HAVE_STPCPY +#include + +extern inline char * stpcpy(char *dest, const char *src) { + char c; + do { + c = *dest++ = *src++; + } while (c); + return dest; +} +#endif + +#if defined(ENABLE_NLS) && defined(HAVE_GETTEXT) +# include +# define N_(x) (x) +# define _(x) gettext(x) +#else +# define N_(x) (x) +# define _(x) (x) +# define textdomain(x) +#endif + +/* Define this, if you have gettext */ +#define HAVE_GETTEXT 1 + +#endif /* _INTL_H_ */ -- cgit v1.2.3