mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
disable chmod usage with msvc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15917 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b0b3338abd
commit
7860112e71
@ -171,8 +171,9 @@
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning( disable : 4800 ) //: forcing value to bool 'true' or 'false' (performance warning)
|
||||
#pragma warning( disable : 4996 ) //: was declared deprecated
|
||||
#ifdef HAVE_CHMOD
|
||||
typedef int mode_t;
|
||||
#undef HAVE_CHMOD
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -21,9 +21,6 @@
|
||||
# include <sys/types.h>
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_CHMOD) && defined(_MSC_VER)
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
namespace lyx {
|
||||
|
||||
@ -59,7 +56,7 @@ bool lyx::support::copy(string const & from, string const & to, unsigned long in
|
||||
if (!ofs)
|
||||
return false;
|
||||
ofs.close();
|
||||
if (!chmod(to, mode_t(mode)))
|
||||
if (!support::chmod(to, mode))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user