Commit 4704dbc7 by Alan Mishchenko

Replaced remove() by unlink() to compile on Windows.

parent 34d59b0b
...@@ -18,12 +18,13 @@ ...@@ -18,12 +18,13 @@
***********************************************************************/ ***********************************************************************/
#include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include "abc_global.h" #include "abc_global.h"
#include "utilSignal.h" #include "utilSignal.h"
#ifdef _MSC_VER #ifdef _MSC_VER
#define remove _remove #define unlink _unlink
#else #else
#include <unistd.h> #include <unistd.h>
#endif #endif
...@@ -56,7 +57,7 @@ void Util_SignalTmpFileRemove(const char* fname, int fLeave) ...@@ -56,7 +57,7 @@ void Util_SignalTmpFileRemove(const char* fname, int fLeave)
{ {
if (! fLeave) if (! fLeave)
{ {
remove(fname); unlink(fname);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment