]> git.lyx.org Git - lyx.git/blobdiff - src/support/unlink.C
hopefully fix tex2lyx linking.
[lyx.git] / src / support / unlink.C
index a814f9282363dc0093c367bc162ed52b7a8059c4..ebdd20eabfb28e88a84b6d797702d7c7f0030e70 100644 (file)
 
 #include <config.h>
 
-#include <unistd.h>
+#include "support/lyxlib.h"
 
-#include "lyxlib.h"
 
-int lyx::support::unlink(string const & pathname)
+namespace lyx {
+
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+
+int lyx::support::unlink(std::string const & pathname)
 {
        return ::unlink(pathname.c_str());
 }
+
+
+} // namespace lyx