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:
Peter Kümmel 2006-11-14 16:11:59 +00:00
parent b0b3338abd
commit 7860112e71
2 changed files with 3 additions and 5 deletions

View File

@ -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

View File

@ -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;
}