* 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::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