| 
					
				 | 
			
			
				@@ -37,6 +37,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // STD includes 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #include <cstdio> // For _fileno or fileno 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <io.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // -------------------------------------------------------------------------- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // ctkErrorLogLevel methods 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -155,7 +156,11 @@ void ctkErrorLogTerminalOutput::output(const QString& text) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     QMutexLocker locker(&d->OutputMutex); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     QString textWithNewLine = text + "\n"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#ifdef _MSC_VER 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    _write(d->FD, qPrintable(textWithNewLine), textWithNewLine.size()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     write(d->FD, qPrintable(textWithNewLine), textWithNewLine.size()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |