ref: ceae4a44f39e3157a872062124c94c35e97ac7ba
parent: ea003487aa6145999d74a30d62344c3398d67a7a
author: ISSOtm <[email protected]>
date: Sat Nov 23 17:21:11 EST 2019
Stop using `f(un)?lockfile` Those are only useful for locking file IO across threads, but RGBLINK is single-threaded anyways, so they don't matter. Plus, they aren't provided by mingw, so that'll remove part of the problem
--- a/src/link/output.c
+++ b/src/link/output.c
@@ -188,10 +188,6 @@
checkOverlay();
if (outputFile) {
- flockfile(outputFile);
- if (overlayFile)
- flockfile(overlayFile);
-
if (sections[SECTTYPE_ROM0].nbBanks > 0)
writeBank(sections[SECTTYPE_ROM0].banks[0].sections,
0x0000, 0x4000);
@@ -199,10 +195,6 @@
for (uint32_t i = 0 ; i < sections[SECTTYPE_ROMX].nbBanks; i++)
writeBank(sections[SECTTYPE_ROMX].banks[i].sections,
0x4000, 0x4000);
-
- if (overlayFile)
- funlockfile(overlayFile);
- funlockfile(outputFile);
}
closeFile(outputFile);