=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/io/io.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -p -r1.15 -r1.16 --- OpenXM_contrib2/asir2000/io/io.c 2015/08/04 06:20:45 1.15 +++ OpenXM_contrib2/asir2000/io/io.c 2015/08/06 10:01:52 1.16 @@ -44,12 +44,12 @@ * OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. - * $OpenXM: OpenXM_contrib2/asir2000/io/io.c,v 1.14 2009/03/16 16:43:03 ohara Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/io/io.c,v 1.15 2015/08/04 06:20:45 noro Exp $ */ #include #include "ca.h" #include "parse.h" -#if defined(VISUAL) || defined(MPI) +#if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__) || defined(MPI) #include "wsio.h" #endif @@ -102,7 +102,7 @@ void ox_copy_init(char *s) ox_copy_bptr = s; } -#if !defined(VISUAL) +#if !defined(VISUAL) && !defined(__MINGW32__) && !defined(__MINGW64__) /* * library mode functions * byte order is controlled by lib_ox_need_conv. @@ -137,7 +137,7 @@ int gen_fread (char *ptr,int size,int nitems,FILE *str /* dummy return */ return 0; } else { -#if defined(VISUAL) +#if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__) if ( _fileno(stream) < 0 ) n = cread(ptr,size,nitems,(STREAM *)stream); else @@ -171,7 +171,7 @@ int gen_fwrite (char *ptr,int size,int nitems,FILE *st /* dummy return */ return 0; } else -#if defined(VISUAL) +#if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__) if ( _fileno(stream) < 0 ) return cwrite(ptr,size,nitems,(STREAM *)stream); else