X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=compiler.h;h=dd7a5b88dbf44df8ade9998dc086c1fa2516c9ff;hb=02f74387ee455ffc90f4d7ebab708959fd32352d;hp=9496481d0bdea5bd81d9a3716086f8c2e738c141;hpb=52931926d11b65b932c7c5f55ce4566439d4593c;p=bertos.git diff --git a/compiler.h b/compiler.h index 9496481d..dd7a5b88 100755 --- a/compiler.h +++ b/compiler.h @@ -15,6 +15,10 @@ /* * $Log$ + * Revision 1.8 2004/07/20 23:43:39 bernie + * Use attribute((always_inline)) to force inlining. This fixes the much + * hated need of redundant prototypes for inline functions. + * * Revision 1.7 2004/07/20 23:26:48 bernie * Fix two errors introduced by previous commit. * @@ -113,9 +117,9 @@ #define FORMAT(type,fmt,first) __attribute__((__format__(type, fmt, first))) #define NORETURN __attribute__((__noreturn__)) #define UNUSED(type,arg) __attribute__((__unused__)) type arg - #define INLINE extern inline + #define INLINE static inline __attribute__((__always_inline__)) #if GNUC_PREREQ(3,1) - #define DEPRECATED __attribute__((__deprecated__)) + #define DEPRECATED __attribute__((__deprecated__)) #endif #if defined(__i386__)