]> Creatis software - gdcm.git/commitdiff
COMP: Fix compilation on Win32 system without unistd.h but instead io.h
authormalaterre <malaterre>
Sat, 21 May 2005 02:12:43 +0000 (02:12 +0000)
committermalaterre <malaterre>
Sat, 21 May 2005 02:12:43 +0000 (02:12 +0000)
src/gdcmmpeg2/src/mpeg2dec/config.h
src/gdcmmpeg2/src/mpeg2dec/getbits.c
src/gdcmmpeg2/src/mpeg2dec/mpeg2dec.c
src/gdcmmpeg2/src/mpeg2dec/store.c
src/gdcmmpeg2/src/mpeg2dec/subspic.c

index cfc213f..cfb9ffb 100644 (file)
 #ifndef O_BINARY
 #define O_BINARY 0
 #endif
+
+/* For close / read / lseek ... */
+#ifndef _MSC_VER
+#include <unistd.h>
+#else
+#include <io.h>
+#endif
index e36f610..9b9b593 100644 (file)
@@ -34,7 +34,6 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <unistd.h> // for read
 
 #include "config.h"
 #include "global.h"
index 09a4ae2..cb21376 100644 (file)
@@ -32,7 +32,6 @@
 #include <stdlib.h>
 #include <ctype.h>
 #include <fcntl.h>
-#include <unistd.h> // for lseek
 
 #define GLOBAL
 #include "config.h"
index 628938b..670c252 100644 (file)
@@ -30,7 +30,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <fcntl.h>
-#include <unistd.h> // for write
 #include <string.h> // for strcat
 
 #include "config.h"
index 70f68b7..67bb555 100644 (file)
@@ -31,7 +31,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <fcntl.h>
-#include <unistd.h> // for read
 
 #include "config.h"
 #include "global.h"