Explorar o código

Merge branch 'ctkerrorlogmodel-msvc-compile-error2'

* ctkerrorlogmodel-msvc-compile-error2:
  io.h is only available on MSVC compilers
Julien Finet %!s(int64=13) %!d(string=hai) anos
pai
achega
f9a6b0a4d9
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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