mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +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
|
#ifdef _MSC_VER
|
||||||
#pragma warning( disable : 4800 ) //: forcing value to bool 'true' or 'false' (performance warning)
|
#pragma warning( disable : 4800 ) //: forcing value to bool 'true' or 'false' (performance warning)
|
||||||
|
#pragma warning( disable : 4996 ) //: was declared deprecated
|
||||||
#ifdef HAVE_CHMOD
|
#ifdef HAVE_CHMOD
|
||||||
typedef int mode_t;
|
#undef HAVE_CHMOD
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -21,9 +21,6 @@
|
|||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_CHMOD) && defined(_MSC_VER)
|
|
||||||
#include <io.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
@ -59,7 +56,7 @@ bool lyx::support::copy(string const & from, string const & to, unsigned long in
|
|||||||
if (!ofs)
|
if (!ofs)
|
||||||
return false;
|
return false;
|
||||||
ofs.close();
|
ofs.close();
|
||||||
if (!chmod(to, mode_t(mode)))
|
if (!support::chmod(to, mode))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user