aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/platform.h b/include/platform.h
index 12cb4d5a7..d2c1f9d20 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -48,27 +48,27 @@
48# define __const const 48# define __const const
49#endif 49#endif
50 50
51#define ATTRIBUTE_UNUSED __attribute__ ((__unused__)) 51#define UNUSED_PARAM __attribute__ ((__unused__))
52#define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__)) 52#define NORETURN __attribute__ ((__noreturn__))
53#define ATTRIBUTE_PACKED __attribute__ ((__packed__)) 53#define PACKED __attribute__ ((__packed__))
54#define ATTRIBUTE_ALIGNED(m) __attribute__ ((__aligned__(m))) 54#define ALIGNED(m) __attribute__ ((__aligned__(m)))
55/* __NO_INLINE__: some gcc's do not honor inlining! :( */ 55/* __NO_INLINE__: some gcc's do not honor inlining! :( */
56#if __GNUC_PREREQ(3,0) && !defined(__NO_INLINE__) 56#if __GNUC_PREREQ(3,0) && !defined(__NO_INLINE__)
57# define ALWAYS_INLINE __attribute__ ((always_inline)) inline 57# define ALWAYS_INLINE __attribute__ ((always_inline)) inline
58/* I've seen a toolchain where I needed __noinline__ instead of noinline */ 58/* I've seen a toolchain where I needed __noinline__ instead of noinline */
59# define NOINLINE __attribute__((__noinline__)) 59# define NOINLINE __attribute__((__noinline__))
60# if !ENABLE_WERROR 60# if !ENABLE_WERROR
61# define ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__)) 61# define DEPRECATED __attribute__ ((__deprecated__))
62# define ATTRIBUTE_UNUSED_RESULT __attribute__ ((warn_unused_result)) 62# define UNUSED_PARAM_RESULT __attribute__ ((warn_unused_result))
63# else 63# else
64# define ATTRIBUTE_DEPRECATED /* n/a */ 64# define DEPRECATED /* n/a */
65# define ATTRIBUTE_UNUSED_RESULT /* n/a */ 65# define UNUSED_PARAM_RESULT /* n/a */
66# endif 66# endif
67#else 67#else
68# define ALWAYS_INLINE inline /* n/a */ 68# define ALWAYS_INLINE inline /* n/a */
69# define NOINLINE /* n/a */ 69# define NOINLINE /* n/a */
70# define ATTRIBUTE_DEPRECATED /* n/a */ 70# define DEPRECATED /* n/a */
71# define ATTRIBUTE_UNUSED_RESULT /* n/a */ 71# define UNUSED_PARAM_RESULT /* n/a */
72#endif 72#endif
73 73
74/* -fwhole-program makes all symbols local. The attribute externally_visible 74/* -fwhole-program makes all symbols local. The attribute externally_visible