Annotation of OpenXM_contrib/pari/src/headers/parisys.h, Revision 1.1.1.1
1.1 maekawa 1: /******************************************************************/
2: /* This files contains macros depending on system and compiler */
3: /* $Id: parisys.h,v 1.1.1.1 1999/09/16 13:47:45 karim Exp $ */
4:
5: #ifndef LITTLE_ENDIAN_64
6: # define LITTLE_ENDIAN_64 12345678
7: #endif
8: #ifndef BIG_ENDIAN_64
9: # define BIG_ENDIAN_64 87654321
10: #endif
11: #ifndef LITTLE_ENDIAN
12: # define LITTLE_ENDIAN 1234
13: #endif
14: #ifndef BIG_ENDIAN
15: # define BIG_ENDIAN 4321
16: #endif
17: #ifndef PDP_ENDIAN
18: # define PDP_ENDIAN 3412
19: #endif
20:
21: #ifdef __cplusplus
22: # define ANYARG ...
23: # define BEGINEXTERN extern "C" {
24: # define ENDEXTERN }
25: # define INLINE inline
26: # ifdef __GNUC__
27: # define ASMINLINE
28: # define VOLATILE volatile
29: # else
30: # define VOLATILE
31: # endif
32: #else
33: # define ANYARG
34: # define BEGINEXTERN
35: # define ENDEXTERN
36: # ifdef __GNUC__
37: # define ASMINLINE
38: # define VOLATILE __volatile__
39: # ifdef GCC_INLINE
40: # ifndef __OPTIMIZE__
41: # error "no inlining without -O. Put back -O or remove -DGCC_INLINE"
42: # else
43: # define INLINE __inline__ static
44: # endif
45: # endif
46: # ifdef __STRICT_ANSI__
47: # define ULONG_NOT_DEFINED
48: # endif
49: # else
50: # define VOLATILE
51:
52: # endif
53: #endif
54: #ifdef _WIN32
55: /* ANSI C does not allow to longjmp() out of a signal handler, in particular,
56: * the SIGINT handler. On Win32, the handler is executed in another thread, and
57: * longjmp'ing into another thread's stack will utterly confuse the system.
58: * Instead, we check whether win32ctrlc is set in new_chunk().
59: */
60: extern int win32ctrlc;
61: void dowin32ctrlc();
62: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>