=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2018/include/ca.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -p -r1.15 -r1.16 --- OpenXM_contrib2/asir2018/include/ca.h 2019/12/13 14:40:49 1.15 +++ OpenXM_contrib2/asir2018/include/ca.h 2019/12/19 08:34:42 1.16 @@ -45,7 +45,7 @@ * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. * - * $OpenXM: OpenXM_contrib2/asir2018/include/ca.h,v 1.14 2019/11/19 10:50:31 noro Exp $ + * $OpenXM: OpenXM_contrib2/asir2018/include/ca.h,v 1.15 2019/12/13 14:40:49 fujimoto Exp $ */ #include #include @@ -829,7 +829,11 @@ void (*set_signal(int sig, void (*handler)(int)))(int) #endif /* for setjmp/longjmp compatibility */ -#if defined(__CYGWIN__) || defined(HAVE_SIGACTION) || (defined(__x86_64) && !defined(__MINGW32__)) +#if defined(ANDROID) +#define JMP_BUF jmp_buf +#define SETJMP(x) _setjmp(x) +#define LONGJMP(x,y) _longjmp(x,y) +#elif defined(__CYGWIN__) || defined(HAVE_SIGACTION) || (defined(__x86_64) && !defined(__MINGW32__)) #define JMP_BUF sigjmp_buf #define SETJMP(x) sigsetjmp(x,~0) #define LONGJMP(x,y) siglongjmp(x,y)