소스 검색

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