Fix building with recent djgpp2 gcc-6 version.

This commit is contained in:
Markus F.X.J. Oberhumer
2017-05-03 13:21:08 +02:00
parent 2e56fe82bb
commit 7ebed06393
11 changed files with 23 additions and 30 deletions
+2 -2
View File
@@ -48,7 +48,7 @@ void File::chmod(const char *name, int mode)
void File::rename(const char *old_, const char *new_)
{
#if defined(__DJGPP__)
#if (ACC_OS_DOS32) && defined(__DJGPP__)
if (::_rename(old_,new_) != 0)
#else
if (::rename(old_,new_) != 0)
@@ -94,7 +94,7 @@ bool FileBase::do_sopen()
_fd = ::open(_name, _flags, _mode);
else
{
#if defined(__DJGPP__)
#if (ACC_OS_DOS32) && defined(__DJGPP__)
_fd = ::open(_name,_flags | _shflags, _mode);
#elif defined(__MINT__)
_fd = ::open(_name,_flags | (_shflags & O_SHMODE), _mode);