X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fmisc%2Fstpcpy.c;h=b87f40fa437a85dd7725f8d0caf8c300f9de6686;hb=1a9d3c43ecae725e30a2cdaf8e3b6612a1107b37;hp=b9df2972a37be17577863ae10db395d31815d99f;hpb=4944c86a9318bc5b5578ab145a95c116ffd2c9fd;p=pspp diff --git a/lib/misc/stpcpy.c b/lib/misc/stpcpy.c index b9df2972a3..b87f40fa43 100644 --- a/lib/misc/stpcpy.c +++ b/lib/misc/stpcpy.c @@ -19,22 +19,8 @@ #include -/* 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. */