소스 검색

Fix ctkErrorLogFDMessageHandler compilation warning

fileno() is considered as unsafe for Visual Studio
Julien Finet 12 년 전
부모
커밋
f0fa9fdbf7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Libs/Core/ctkErrorLogFDMessageHandler.cpp

+ 1 - 1
Libs/Core/ctkErrorLogFDMessageHandler.cpp

@@ -137,7 +137,7 @@ void ctkFDHandler::setEnabled(bool value)
 
 
     QString newline("\n");
     QString newline("\n");
 #ifdef Q_OS_WIN32
 #ifdef Q_OS_WIN32
-    _write(fileno(this->terminalOutputFile()), qPrintable(newline), newline.size());
+    _write(_fileno(this->terminalOutputFile()), qPrintable(newline), newline.size());
 #else
 #else
     write(fileno(this->terminalOutputFile()), qPrintable(newline), newline.size());
     write(fileno(this->terminalOutputFile()), qPrintable(newline), newline.size());
 #endif
 #endif