Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Make tiio_tif.cpp use io.h instead of unistd.h in Visual Studio

kusano6139acbd319f
diff --git a/toonz/sources/image/tif/tiio_tif.cpp b/toonz/sources/image/tif/tiio_tif.cpp
index f9dec2965..2864e59f6 100644
--- a/toonz/sources/image/tif/tiio_tif.cpp
+++ b/toonz/sources/image/tif/tiio_tif.cpp
@@ -5,7 +5,11 @@
#endif
#define IS_TIFF_MAIN
+#if _WIN32
+#include <io.h>
+#else
#include <unistd.h>
+#endif
#include "tiio.h"
#include "tpixel.h"