X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=as%2Fhc08%2Flkmain.c;h=4f6d0ff194f4d27eb31d5a59ec1ea5498438f3ae;hb=fe9b00fb61dc71f48cb6416e608b5b6882bbc35f;hp=401916a51b397764f6ac190720567f12edcb4d21;hpb=5cb4bb4d324621c9bd66c6d8b4b6cd9ff4da0961;p=fw%2Fsdcc diff --git a/as/hc08/lkmain.c b/as/hc08/lkmain.c index 401916a5..4f6d0ff1 100644 --- a/as/hc08/lkmain.c +++ b/as/hc08/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 @@ -116,7 +111,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(), @@ -427,7 +422,7 @@ int i; copyfile(xfp,dfp); fclose(xfp); fclose(dfp); - unlink("temp.cdb"); + remove("temp.cdb"); }*/ exit(i); }