X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=as%2Fmcs51%2Flkmain.c;h=43392b83b1999a489a7058a5d22171b96ade93eb;hb=fe9b00fb61dc71f48cb6416e608b5b6882bbc35f;hp=9adbde049f50fc3389f15c32e7b2723c511e86ee;hpb=5cb4bb4d324621c9bd66c6d8b4b6cd9ff4da0961;p=fw%2Fsdcc diff --git a/as/mcs51/lkmain.c b/as/mcs51/lkmain.c index 9adbde04..43392b83 100644 --- a/as/mcs51/lkmain.c +++ b/as/mcs51/lkmain.c @@ -42,11 +42,6 @@ void Timer(int action, char * message) } #endif -/* yuck - but including unistd.h causes problems on Cygwin by redefining - * Addr_T. - */ -extern int unlink(const char *); - /*)Module lkmain.c * * The module lkmain.c contains the functions which @@ -155,7 +150,7 @@ void Areas51 (void) * * The function main() evaluates the command line arguments to * determine if the linker parameters are to input through 'stdin' - * or read from a command file. The functiond as_getline() and parse() + * or read from a command file. The functions as_getline() and parse() * are to input and evaluate the linker parameters. The linking process * proceeds by making the first pass through each .rel file in the order * presented to the linker. At the end of the first pass the setbase(), @@ -470,7 +465,7 @@ lkexit(int i) copyfile(xfp,dfp); fclose(xfp); fclose(dfp); - unlink("temp.cdb"); + remove("temp.cdb"); }*/ exit(i); }