summaryrefslogtreecommitdiff
path: root/intl
diff options
context:
space:
mode:
Diffstat (limited to 'intl')
-rw-r--r--intl/dcgettext.c4
-rw-r--r--intl/l10nflist.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/intl/dcgettext.c b/intl/dcgettext.c
index c7540053b2..ecc2e1ac26 100644
--- a/intl/dcgettext.c
+++ b/intl/dcgettext.c
@@ -95,7 +95,9 @@ void free ();
because some ANSI C functions will require linking with this object
file and the name space must not be polluted. */
# define getcwd __getcwd
-# define stpcpy __stpcpy
+# ifndef stpcpy
+# define stpcpy __stpcpy
+# endif
#else
# if !defined HAVE_GETCWD
char *getwd ();
diff --git a/intl/l10nflist.c b/intl/l10nflist.c
index 640b932b01..5309cc73ed 100644
--- a/intl/l10nflist.c
+++ b/intl/l10nflist.c
@@ -68,7 +68,9 @@
/* Rename the non ANSI C functions. This is required by the standard
because some ANSI C functions will require linking with this object
file and the name space must not be polluted. */
-# define stpcpy(dest, src) __stpcpy(dest, src)
+# ifndef stpcpy
+# define stpcpy(dest, src) __stpcpy(dest, src)
+# endif
#else
# ifndef HAVE_STPCPY
static char *stpcpy PARAMS ((char *dest, const char *src));