diff options
Diffstat (limited to 'src/portable.cpp')
-rw-r--r-- | src/portable.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/portable.cpp b/src/portable.cpp index 3dccaed..baf79c9 100644 --- a/src/portable.cpp +++ b/src/portable.cpp @@ -467,3 +467,13 @@ void portable_correct_path(void) if (result!=p) portable_setenv("PATH",result.data()); #endif } + +void portable_unlink(const char *fileName) +{ +#if defined(_WIN32) && !defined(__CYGWIN__) + _unlink(fileName); +#else + unlink(fileName); +#endif +} + |