summaryrefslogtreecommitdiff
path: root/lib/stpncpy.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2005-01-17 13:15:19 +0000
committerBruno Haible <bruno@clisp.org>2005-01-17 13:15:19 +0000
commit45507493d857878cfeeed11d404a5645dd57c25c (patch)
tree5c35c5db50c3bd37cf5fd77a58775f0b3d215674 /lib/stpncpy.c
parent8456d9b5f7e4558fd942fdeeba60f9994334f44b (diff)
downloadgnulib-45507493d857878cfeeed11d404a5645dd57c25c.tar.gz
Move some conditionals from the .c file to the .m4 file.
Diffstat (limited to 'lib/stpncpy.c')
-rw-r--r--lib/stpncpy.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/stpncpy.c b/lib/stpncpy.c
index 3f7473f946..87e4382b54 100644
--- a/lib/stpncpy.c
+++ b/lib/stpncpy.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1995-1997, 2002-2003 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1995-1997, 2002-2003, 2005 Free Software Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C Library.
Bugs can be reported to bug-glibc@gnu.org.
@@ -27,15 +27,6 @@
/* Specification. */
#include "stpncpy.h"
-#if !HAVE_STPNCPY
-
-#ifndef _LIBC
-/* We cannot generally use the name 'stpncpy' since AIX 4 defines an unusable
- variant of the function but we cannot use it. */
-# undef stpncpy
-# define stpncpy gnu_stpncpy
-#endif
-
#ifndef weak_alias
# define __stpncpy stpncpy
#endif
@@ -102,5 +93,3 @@ __stpncpy (char *dest, const char *src, size_t n)
#ifdef weak_alias
weak_alias (__stpncpy, stpncpy)
#endif
-
-#endif