]> 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 cfc213fe5c470d155469b25529179c4bbddc9573..cfb9ffb18427ce91e65732a88a502aede6a9d0be 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 e36f6104c2e72918e89ac69d4e99bd89bed63acd..9b9b593cb3214afd57217877584d51f439d226e2 100644 (file)
@@ -34,7 +34,6 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <unistd.h> // for read
 
 #include "config.h"
 #include "global.h"
index 09a4ae27cf80fa646f5bba04db445eb56306be73..cb21376008f3f6a64f77a4fdcb27439e12b75801 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 628938bf29a1b3c0023633998c3d739ec1d31ea4..670c252a563b15b72f18e98e65bcbafa33286885 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 70f68b77672a4ad6f26077b23460b662c50ec7f3..67bb555dfce773a5018293a69c0e142ae377e96e 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"