Commit dffc9444 authored by Anas Nashif's avatar Anas Nashif
Browse files

toolchain: check if __deprecated is defined



This macro is defined on some operating systems, so make sure we do not
redefine it.

Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent 522ca629
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -174,7 +174,9 @@ do { \
#define __printf_like(f, a)   __attribute__((format (printf, f, a)))
#endif
#define __used		__attribute__((__used__))
#ifndef __deprecated
#define __deprecated	__attribute__((deprecated))
#endif
#define ARG_UNUSED(x) (void)(x)

#define likely(x)   __builtin_expect((bool)!!(x), true)