* as/hc08/asmain.c (asexit),
[fw/sdcc] / support / librarian / sdcclib.c
index 7598431fa4f4b52f35d18dec83af208fb480fdc2..80aedc10ef40d8142aa1fe4391d9462d98072399 100644 (file)
@@ -15,11 +15,11 @@ You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
 
+#define _POSIX_
+#include <limits.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
-#define _POSIX_
-#include <limits.h>
 #if !defined(__BORLANDC__) && !defined(_MSC_VER)
 #include <unistd.h>
 #endif
@@ -367,8 +367,8 @@ void AddRel(void)
     fclose(lib);
     fclose(libindex);
 
-    unlink(LibNameTmp);
-    unlink(IndexName);
+    remove(LibNameTmp);
+    remove(IndexName);
 }
 
 void ExtractRel(void)