diff options
author | Marvin Borner | 2021-04-01 18:07:36 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-01 18:07:36 +0200 |
commit | 4c168fb34c15a1b8981abef7ccef1542a6fb05ca (patch) | |
tree | 306604c6fab7b2d914aaa125e232696a040ed141 /libs | |
parent | 0d16626ad13677451970758ad7299540957bd89a (diff) |
Started WM improvements
Diffstat (limited to 'libs')
-rw-r--r-- | libs/libc/inc/def.h | 3 |
1 files changed, 2 insertions, 1 deletions
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))) |