mirror of https://github.com/YosysHQ/abc.git
Replaced remove() by unlink() to compile on Windows.
This commit is contained in:
parent
34d59b0b91
commit
4704dbc798
|
|
@ -18,12 +18,13 @@
|
|||
|
||||
***********************************************************************/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "abc_global.h"
|
||||
#include "utilSignal.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define remove _remove
|
||||
#define unlink _unlink
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
|
@ -56,7 +57,7 @@ void Util_SignalTmpFileRemove(const char* fname, int fLeave)
|
|||
{
|
||||
if (! fLeave)
|
||||
{
|
||||
remove(fname);
|
||||
unlink(fname);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue