]> Creatis software - gdcm.git/blobdiff - src/gdcmmpeg2/src/mpeg2dec/spatscal.c
COMP: Fix compilation on Win32 system without unistd.h but instead io.h
[gdcm.git] / src / gdcmmpeg2 / src / mpeg2dec / spatscal.c
index 55d26f24a7cb466238278408098f76abe00a61cc..94557677d402a5e44685b2206ea946ce0de6640c 100644 (file)
@@ -1,5 +1,7 @@
 
 #include <stdio.h>
+#include <string.h> // for strcat
+#include <stdlib.h> // for exit
 #include "config.h"
 #include "global.h"
 
@@ -92,7 +94,7 @@ static void Read_Lower_Layer_Component_Framewise(comp,lw,lh)
 #ifdef VERBOSE
   if (Verbose_Flag>1)
     printf("reading %s\n",fname);
-#endif VERBOSE
+#endif /* VERBOSE */
   fd=fopen(fname,"rb");
   if (fd==NULL) exit(-1);
   for (j=0; j<lh; j++) {
@@ -123,7 +125,7 @@ static void Read_Lower_Layer_Component_Fieldwise(comp,lw,lh)
 #ifdef VERBOSE
   if (Verbose_Flag>1)
     printf("reading %s\n",fname);
-#endif VERBOSE
+#endif /* VERBOSE */
   fd=fopen(fname,"rb");
   if (fd==NULL) exit(-1);
   for (j=0; j<lh; j+=lower_layer_progressive_frame?1:2)
@@ -137,7 +139,7 @@ static void Read_Lower_Layer_Component_Fieldwise(comp,lw,lh)
 #ifdef VERBOSE
     if (Verbose_Flag>1)
       printf("reading %s\n",fname);
-#endif VERBOSE
+#endif /* VERBOSE */
     fd=fopen(fname,"rb");
     if (fd==NULL) exit(-1);
     for (j=1; j<lh; j+=2)