]> git.lyx.org Git - lyx.git/blobdiff - src/support/unlink.C
hopefully fix tex2lyx linking.
[lyx.git] / src / support / unlink.C
index dd7e16e3b15b0b6cf261dd7e9192678b182dbba3..ebdd20eabfb28e88a84b6d797702d7c7f0030e70 100644 (file)
@@ -3,18 +3,26 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
-#include <unistd.h>
+#include "support/lyxlib.h"
 
-#include "lyxlib.h"
 
-int lyx::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