Don't #include "str.h" in stpcpy.c.
[pspp-builds.git] / lib / misc / stpcpy.c
index b9df2972a37be17577863ae10db395d31815d99f..b87f40fa437a85dd7725f8d0caf8c300f9de6686 100644 (file)
 
 #include <stddef.h>
 
-/* Some old versions of Linux libc prototype stpcpy() in string.h but
-   fail to include it in their C library.  By not including string.h
-   on these systems we can avoid conflicting prototypes.  Of course,
-   in theory this might be dangerous, if the prototype specifies some
-   weird calling convention, but for GNU/Linux at least it shouldn't
-   cause problems.
-
-   This might be needed for systems other than GNU/Linux; let me
-   know. */
-
-#ifdef __linux__
 void *memcpy (void *, const void *, size_t);
 size_t strlen (const char *);
-#else
-#include "str.h"
-#endif
 
 /* Copies SRC to DEST, returning the address of the terminating '\0'
    in DEST. */