浏览代码

Merge branch 'ctkerrorlogmodel-msvc-compile-error2'

* ctkerrorlogmodel-msvc-compile-error2:
  io.h is only available on MSVC compilers
Julien Finet 13 年之前
父节点
当前提交
f9a6b0a4d9
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Libs/Core/ctkErrorLogModel.cpp

+ 3 - 1
Libs/Core/ctkErrorLogModel.cpp

@@ -37,7 +37,9 @@
 
 // STD includes
 #include <cstdio> // For _fileno or fileno
-#include <io.h>
+#ifdef _MSC_VER
+# include <io.h> // For _write()
+#endif
 
 // --------------------------------------------------------------------------
 // ctkErrorLogLevel methods