Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / reqtools / compilerspecific.h
blob546b29eeb4312af6627a9b60fdd4910c1ca378a7
1 #ifndef AROS_INTPTR_TYPE
2 #define AROS_INTPTR_TYPE long
3 typedef unsigned AROS_INTPTR_TYPE IPTR;
4 typedef signed AROS_INTPTR_TYPE SIPTR;
5 #endif /* AROS_INTPTR_TYPE */
8 #undef REGARGS
9 #undef STDARGS
10 #undef ALIGNED
11 #undef CHIP
12 #undef ASM
13 #undef SAVEDS
15 #ifdef __GNUC__
17 /* GCC */
19 #undef USE_ASM_FUNCS
20 #define USE_ASM_FUNCS 0
22 #undef USE_OPTASM_FUNCS
23 #define USE_OPTASM_FUNCS 0
25 #define REGPARAM(reg,type,name) register type name asm(#reg)
26 #define ASM_REGPARAM(reg,type,name) type name
27 #define OPT_REGPARAM(reg,type,name) type name
29 #define REGARGS
30 #define STDARGS
31 #define ALIGNED
33 /* #warning Fix CHIP macro for GCC compiler in compilerspecific.h
35 Does not really matter, as there is only one place with a
36 mouse pointer data structure which uses/needs this CHIP. And
37 this is anyway only used on OS versions < 39 */
39 #define CHIP
41 #define ASM
42 #define SAVEDS
44 #else
46 /* SAS C */
48 #define REGPARAM(reg,type,name) register __ ## reg type name
50 #if USE_ASM_FUNCS
51 # define ASM_REGPARAM(reg,type,name) register __ ## reg type name
52 #else
53 # define ASM_REGPARAM(reg,type,name) type name
54 #endif
56 #if USE_OPTASM_FUNCS
57 # define OPT_REGPARAM(reg,type,name) register __ ## reg type name
58 #else
59 # define OPT_REGPARAM(reg,type,name) type name
60 #endif
62 #define REGARGS __regargs
63 #define STDARGS __stdargs
64 #define ALIGNED __aligned
65 #define CHIP __chip
66 #define ASM __asm
67 #define SAVEDS __saveds
69 #endif