From ff3f99c62ecad32925545cf7ae617231e17af19d Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 14 Aug 2024 17:03:51 +0200 Subject: [PATCH] include/c: add BIT() Signed-off-by: Karel Zak --- include/c.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/c.h b/include/c.h index 3db3ab2fc..d87521be0 100644 --- a/include/c.h +++ b/include/c.h @@ -37,6 +37,8 @@ # define NAME_MAX PATH_MAX #endif +#define BIT(n) (1 << (n)) + /* * __GNUC_PREREQ is deprecated in favour of __has_attribute() and * __has_feature(). The __has macros are supported by clang and gcc>=5. -- 2.47.3