Просмотр исходного кода

io.h is only available on MSVC compilers

Julien Finet лет назад: 13
Родитель
Сommit
e88aeff709
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