mingw tweaks

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21952 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2005-11-05 06:22:15 +00:00
parent 9d64352859
commit fee3e814a4
2 changed files with 18 additions and 1 deletions

View file

@ -1108,7 +1108,11 @@ static BOOL debugTemporarilyDisabled = NO;
extern int _NSLogDescriptor;
int desc;
#if defined(__MINGW32__)
desc = _wopen([path fileSystemRepresentation], O_RDWR|O_CREAT|O_APPEND, 0644);
#else
desc = open([path fileSystemRepresentation], O_RDWR|O_CREAT|O_APPEND, 0644);
#endif
if (desc >= 0)
{
if (_NSLogDescriptor >= 0 && _NSLogDescriptor != 2)