]> rtime.felk.cvut.cz Git - arc.git/blobdiff - include/Compiler.h
Merge branch 'mikulka' of git@rtime.felk.cvut.cz:arc into mikulka
[arc.git] / include / Compiler.h
index f0945726f31997c3bb4a92d8c7585e7d69e8c5ae..b47f0c08f80562152f764f4d16536209eff0ff64 100644 (file)
@@ -34,6 +34,7 @@
 #define CC_EXTENSION   __extension__\r
 #elif defined(__CWCC__)\r
 #define CC_EXTENSION\r
+#pragma read_only_switch_tables on\r
 #elif defined(__DCC__)\r
 #define CC_EXTENSION\r
 #endif\r
@@ -48,6 +49,9 @@
 \r
 #define DECLARE_WEAK                   __attribute__ ((weak))\r
 \r
+/* Does this really work on all compilers.... */\r
+#define INLINE __inline__\r
+\r
 /* REQ:COMPILER005 */\r
 #define FUNC(rettype,memclass) rettype\r
 \r
@@ -59,7 +63,7 @@
 \r
 #define CONSTP2CONST(ptrtype, memclass, ptrclass) const ptrtype * const\r
 \r
-#define P2FUNC(rettype,ptrclass,fctname) retype (*fctname)\r
+#define P2FUNC(rettype,ptrclass,fctname) rettype (*fctname)\r
 \r
 #define CONST(consttype,memclass) const consttype\r
 \r