diff options
author | Marvin Borner | 2021-03-21 12:40:41 +0100 |
---|---|---|
committer | Marvin Borner | 2021-03-21 12:46:08 +0100 |
commit | 09c3bdb186868204cb03d457244e05e12eb685d6 (patch) | |
tree | 7bf59794173d700df08ad303acd6c5a49193a9eb /libc/inc/def.h | |
parent | 68a0ad7f21ba07b93cd63613996e27afd8780f9c (diff) |
Hardened syscalls
Diffstat (limited to 'libc/inc/def.h')
-rw-r--r-- | libc/inc/def.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/inc/def.h b/libc/inc/def.h index c334fcb..708ffee 100644 --- a/libc/inc/def.h +++ b/libc/inc/def.h @@ -28,6 +28,8 @@ 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 NORETURN __attribute__((noreturn)) #define NO_SANITIZE __attribute__((no_sanitize("undefined"))) #define PACKED __attribute__((packed)) |