From 4c168fb34c15a1b8981abef7ccef1542a6fb05ca Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 1 Apr 2021 18:07:36 +0200 Subject: Started WM improvements --- libs/libc/inc/def.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs') diff --git a/libs/libc/inc/def.h b/libs/libc/inc/def.h index 708ffee..e71c502 100644 --- a/libs/libc/inc/def.h +++ b/libs/libc/inc/def.h @@ -28,9 +28,10 @@ typedef unsigned long long u64; #define MIN(a, b) (((a) < (b)) ? (a) : (b)) #define MAX(a, b) (((a) > (b)) ? (a) : (b)) -#define ABS(a) (((a) < 0) ? (-a) : (a)) +#define ABS(a) ((u32)(((s32)(a) < 0) ? (-a) : (a))) #define NORETURN __attribute__((noreturn)) +#define DEPRECATED __attribute__((deprecated)) #define NO_SANITIZE __attribute__((no_sanitize("undefined"))) #define PACKED __attribute__((packed)) #define ALIGNED(align) __attribute__((aligned(align))) -- cgit v1.2.3