aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/platform.h b/include/platform.h
index 53d72829f..edb0f8ab0 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -54,7 +54,8 @@
54# define ATTRIBUTE_ALIGNED(m) __attribute__ ((__aligned__(m))) 54# define ATTRIBUTE_ALIGNED(m) __attribute__ ((__aligned__(m)))
55# if __GNUC_PREREQ (3,0) 55# if __GNUC_PREREQ (3,0)
56# define ALWAYS_INLINE __attribute__ ((always_inline)) inline 56# define ALWAYS_INLINE __attribute__ ((always_inline)) inline
57# define NOINLINE __attribute__((noinline)) 57/* I've seen a toolchain where I needed __noinline__ instead of noinline */
58# define NOINLINE __attribute__((__noinline__))
58# if !ENABLE_WERROR 59# if !ENABLE_WERROR
59# define ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__)) 60# define ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__))
60# define ATTRIBUTE_UNUSED_RESULT __attribute__ ((warn_unused_result)) 61# define ATTRIBUTE_UNUSED_RESULT __attribute__ ((warn_unused_result))
@@ -63,7 +64,8 @@
63# define ATTRIBUTE_UNUSED_RESULT /* n/a */ 64# define ATTRIBUTE_UNUSED_RESULT /* n/a */
64# endif 65# endif
65# else 66# else
66# define ALWAYS_INLINE inline 67# define ALWAYS_INLINE inline /* n/a */
68# define NOINLINE /* n/a */
67# define ATTRIBUTE_DEPRECATED /* n/a */ 69# define ATTRIBUTE_DEPRECATED /* n/a */
68# define ATTRIBUTE_UNUSED_RESULT /* n/a */ 70# define ATTRIBUTE_UNUSED_RESULT /* n/a */
69# endif 71# endif