Work around sdcc oddness (it defines strcpy() as a macro).
authorDavid Given <dg@cowlark.com>
Wed, 28 Oct 2015 23:25:35 +0000 (00:25 +0100)
committerDavid Given <dg@cowlark.com>
Wed, 28 Oct 2015 23:25:35 +0000 (00:25 +0100)
Library/libs/strcpy.c

index 5b15a2c..2314f7f 100644 (file)
@@ -7,6 +7,7 @@
 #include <string.h>\r
     \r
 /********************** Function strcpy ************************************/ \r
+#undef strcpy
 char *strcpy(char *d, const char *s) \r
 {
        return memcpy(d, s, strlen(s) + 1);