From: David Given Date: Wed, 28 Oct 2015 23:25:35 +0000 (+0100) Subject: Work around sdcc oddness (it defines strcpy() as a macro). X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=022e03f4b3d1b20e981d75e45f8898da8270cd3a;p=FUZIX.git Work around sdcc oddness (it defines strcpy() as a macro). --- diff --git a/Library/libs/strcpy.c b/Library/libs/strcpy.c index 5b15a2ce..2314f7f4 100644 --- a/Library/libs/strcpy.c +++ b/Library/libs/strcpy.c @@ -7,6 +7,7 @@ #include /********************** Function strcpy ************************************/ +#undef strcpy char *strcpy(char *d, const char *s) { return memcpy(d, s, strlen(s) + 1);