comparison system/Init.cpp @ 222:c7122e70f8ec

Fixes for Windows build
author Chris Cannam
date Thu, 25 Jan 2007 17:41:00 +0000
parents f8cf055dbf34
children dc46851837d6
comparison
equal deleted inserted replaced
221:07a96a1931c0 222:c7122e70f8ec
39 #endif 39 #endif
40 40
41 #ifdef Q_WS_WIN32 41 #ifdef Q_WS_WIN32
42 42
43 #include <fcntl.h> 43 #include <fcntl.h>
44 #include <windows.h>
44 45
45 // Set default file open mode to binary 46 // Set default file open mode to binary
46 #undef _fmode 47 //#undef _fmode
47 int _fmode = _O_BINARY; 48 //int _fmode = _O_BINARY;
48 49
49 void redirectStderr() 50 void redirectStderr()
50 { 51 {
51 HANDLE stderrHandle = GetStdHandle(STD_ERROR_HANDLE); 52 HANDLE stderrHandle = GetStdHandle(STD_ERROR_HANDLE);
52 if (!stderrHandle) return; 53 if (!stderrHandle) return;