set the include directory
[AROS-Contrib.git] / Games / Doom / amiga_macros.h
blob791d51ab6f90202969edb2e8f8601c09624f6169
1 #ifndef _AMIGA_MACROS_H
2 #define _AMIGA_MACROS_H
4 /*
5 * amiga_macros.h - small macros for compiler specific stuff
6 * This file is public domain.
7 */
9 #include <exec/types.h>
12 * macros for function definitions and declarations
15 #ifdef __GNUC__
16 #define REG(xn, parm) parm __asm(#xn)
17 #define REGARGS __regargs
18 #define STDARGS __stdargs
19 #define SAVEDS __saveds
20 #define ALIGNED __attribute__ ((aligned(4))
21 #define FAR
22 #define CHIP
23 #define INLINE __inline__
24 #else /* of __GNUC__ */
26 #ifdef __SASC
27 #define REG(xn, parm) register __ ## xn parm
28 #define REGARGS __asm
29 #define SAVEDS __saveds
30 #define ALIGNED __aligned
31 #define STDARGS __stdargs
32 #define FAR
33 #define CHIP __chip
34 #define INLINE __inline
35 #else /* of __SASC */
37 #ifdef _DCC
38 #define REG(xn, parm) __ ## xn parm
39 #define REGARGS
40 #define SAVEDS __geta4
41 #define FAR
42 #define CHIP __chip
43 #define INLINE
44 #endif /* _DCC */
46 #endif /* __SASC */
48 #endif /* __GNUC__ */
51 #endif /* _AMIGA_MACROS_H */