* as/hc08/asmain.c (asexit),
[fw/sdcc] / as / hc08 / lkmain.c
index 401916a51b397764f6ac190720567f12edcb4d21..4f6d0ff194f4d27eb31d5a59ec1ea5498438f3ae 100644 (file)
@@ -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);
 }