From: Christoph Sommer Date: Thu, 1 Feb 2007 20:43:57 +0000 (+0000) Subject: Replaced call to "unlink" with one to "remove". This should be more portable... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=3ce9d89c39d82a1d96301e2ec96c11020f633544;p=supertux.git Replaced call to "unlink" with one to "remove". This should be more portable... SVN-Revision: 4774 --- diff --git a/src/addon_manager.cpp b/src/addon_manager.cpp index dcbbdf126..ef82ab0f0 100644 --- a/src/addon_manager.cpp +++ b/src/addon_manager.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include "addon_manager.hpp" #include "config.h" #include "log.hpp" @@ -233,5 +234,5 @@ void AddonManager::remove(const Addon& addon) { PHYSFS_removeFromSearchPath(addon.fname.c_str()); - unlink(addon.fname.c_str()); + ::remove(addon.fname.c_str()); }