Changes to allow compile with MinGW. Macros JMP_BUF, LONGJMP, and SETJMP

This commit is contained in:
sjborley 2005-05-17 21:52:14 +00:00
parent c9120c1d8c
commit 368f6b0699
1 changed files with 12 additions and 3 deletions

View File

@ -77,7 +77,16 @@
times(&buffer); \
time = buffer.user / 60.0; \
}
#ifdef HAVE_SIGSETJMP
# define SETJMP(env, save_signals) sigsetjmp(env, save_signals)
# define LONGJMP(env, retval) siglongjmp(env, retval)
# define JMP_BUF sigjmp_buf
#else
# define SETJMP(env, save_signals) setjmp(env)
# define LONGJMP(env, retval) longjmp(env, retval)
# define JMP_BUF jmp_buf
#endif
#endif /* _MACROS_H_ */