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, 3 insertions, 3 deletions
diff --git a/include/platform.h b/include/platform.h
index c2013b39d..9c93efb53 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -53,14 +53,14 @@
53# define ATTRIBUTE_PACKED __attribute__ ((__packed__)) 53# define ATTRIBUTE_PACKED __attribute__ ((__packed__))
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 ATTRIBUTE_ALWAYS_INLINE __attribute__ ((always_inline)) inline 56# define ALWAYS_INLINE __attribute__ ((always_inline)) inline
57# if !ENABLE_WERROR 57# if !ENABLE_WERROR
58# define ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__)) 58# define ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__))
59# else 59# else
60# define ATTRIBUTE_DEPRECATED /* n/a */ 60# define ATTRIBUTE_DEPRECATED /* n/a */
61# endif 61# endif
62# else 62# else
63# define ATTRIBUTE_ALWAYS_INLINE inline 63# define ALWAYS_INLINE inline
64# define ATTRIBUTE_DEPRECATED /* n/a */ 64# define ATTRIBUTE_DEPRECATED /* n/a */
65# endif 65# endif
66 66
@@ -238,7 +238,7 @@ typedef unsigned smalluint;
238#endif 238#endif
239 239
240#if defined(__dietlibc__) 240#if defined(__dietlibc__)
241static ATTRIBUTE_ALWAYS_INLINE char* strchrnul(const char *s, char c) 241static ALWAYS_INLINE char* strchrnul(const char *s, char c)
242{ 242{
243 while (*s && *s != c) ++s; 243 while (*s && *s != c) ++s;
244 return (char*)s; 244 return (char*)s;