]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include/c: add BIT()
authorKarel Zak <kzak@redhat.com>
Wed, 14 Aug 2024 15:03:51 +0000 (17:03 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 8 Jan 2025 12:57:42 +0000 (13:57 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
include/c.h

index 3db3ab2fc01a1e3f8766feba0fd7f88343128003..d87521be0c9592a735322d30a92326efdf064469 100644 (file)
@@ -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.