Check for SYS/GL during library init. Reason is that
[AROS.git] / rom / partition / compilerspecific.h
blobe7ba0ed7fa6fa60d9be730504dc7eeffb41c4987
1 #if !defined(__AROS__) && !defined(IPTR)
2 #define IPTR ULONG
3 #endif
5 #undef REGARGS
6 #undef STDARGS
7 #undef ALIGNED
8 #undef CHIP
9 #undef ASM
10 #undef SAVEDS
12 #ifdef __GNUC__
14 /* GCC */
16 #undef USE_ASM_FUNCS
17 #define USE_ASM_FUNCS 0
19 #undef USE_OPTASM_FUNCS
20 #define USE_OPTASM_FUNCS 0
22 #define REGPARAM(reg,type,name) register type name asm(#reg)
23 #define ASM_REGPARAM(reg,type,name) type name
24 #define OPT_REGPARAM(reg,type,name) type name
26 #define REGARGS
27 #define STDARGS
28 #define ALIGNED
30 /* #warning Fix CHIP macro for GCC compiler in compilerspecific.h
32 Does not really matter, as there is only one place with a
33 mouse pointer data structure which uses/needs this CHIP. And
34 this is anyway only used on OS versions < 39 */
36 #define CHIP
38 #define ASM
39 #define SAVEDS
41 #else
43 /* SAS C */
45 #define REGPARAM(reg,type,name) register __ ## reg type name
47 #if USE_ASM_FUNCS
48 # define ASM_REGPARAM(reg,type,name) register __ ## reg type name
49 #else
50 # define ASM_REGPARAM(reg,type,name) type name
51 #endif
53 #if USE_OPTASM_FUNCS
54 # define OPT_REGPARAM(reg,type,name) register __ ## reg type name
55 #else
56 # define OPT_REGPARAM(reg,type,name) type name
57 #endif
59 #define REGARGS __regargs
60 #define STDARGS __stdargs
61 #define ALIGNED __aligned
62 #define CHIP __chip
63 #define ASM __asm
64 #define SAVEDS __saveds
66 #endif