]> git.lyx.org Git - lyx.git/blobdiff - src/support/unlink.C
hopefully fix tex2lyx linking.
[lyx.git] / src / support / unlink.C
index 51569cc656678c9073db7845b0b50cf811a68f8b..ebdd20eabfb28e88a84b6d797702d7c7f0030e70 100644 (file)
@@ -5,16 +5,24 @@
  *
  * \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::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