=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2018/include/ox.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -p -r1.1 -r1.2 --- OpenXM_contrib2/asir2018/include/ox.h 2018/09/19 06:00:58 1.1 +++ OpenXM_contrib2/asir2018/include/ox.h 2019/12/13 14:40:50 1.2 @@ -45,7 +45,7 @@ * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. * - * $OpenXM$ + * $OpenXM: OpenXM_contrib2/asir2018/include/ox.h,v 1.1 2018/09/19 06:00:58 noro Exp $ */ #include "com.h" @@ -157,7 +157,9 @@ typedef FILE *ox_stream; /* a macro to check whether data are available in the read buffer */ -#if defined(linux) +#if defined(ANDROID) +#define FP_DATA_IS_AVAILABLE(fp) ((fp)->_r) +#elif defined(linux) #define FP_DATA_IS_AVAILABLE(fp) ((fp)->_IO_read_ptr < (fp)->_IO_read_end) #elif defined(__FreeBSD__) || defined(__DARWIN__) || (defined(__MACH__) && defined(__ppc__)) || defined(__CYGWIN__) || defined(__INTERIX) #define FP_DATA_IS_AVAILABLE(fp) ((fp)->_r)