]> git.lyx.org Git - lyx.git/blob - src/support/unlink.C
* support/os_unix.C (canAutoOpen, autoOpenFile): on Mac OS X, use
[lyx.git] / src / support / unlink.C
1 /**
2  * \file unlink.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Lars Gullik Bjønnes
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "support/lyxlib.h"
14 #include "support/filename.h"
15
16 #ifdef HAVE_UNISTD_H
17 # include <unistd.h>
18 #endif
19
20 namespace lyx {
21 namespace support {
22
23 int unlink(FileName const & pathname)
24 {
25         return ::unlink(pathname.toFilesystemEncoding().c_str());
26 }
27
28
29 } // namespace support
30 } // namespace lyx