Browse Source

io.h is only available on MSVC compilers

Julien Finet 13 years ago
parent
commit
e88aeff709
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Libs/Core/ctkErrorLogModel.cpp

+ 3 - 1
Libs/Core/ctkErrorLogModel.cpp

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