浏览代码

Merge branch 'ctkErrorLogFDMessageHandler-compilation-warnings'

* ctkErrorLogFDMessageHandler-compilation-warnings:
  Fix ctkErrorLogFDMessageHandler compilation warning
Julien Finet 12 年之前
父节点
当前提交
01f1a76fe7
共有 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");
 #ifdef Q_OS_WIN32
-    _write(fileno(this->terminalOutputFile()), qPrintable(newline), newline.size());
+    _write(_fileno(this->terminalOutputFile()), qPrintable(newline), newline.size());
 #else
     write(fileno(this->terminalOutputFile()), qPrintable(newline), newline.size());
 #endif