diff options
author | Jan Janssen <medhefgo@web.de> | 2022-05-28 11:25:33 +0200 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2022-05-28 11:34:16 +0200 |
commit | b41ebe3d18f8ac1270329747c64fe1949843f2b6 (patch) | |
tree | 45e97d276f555ec61fbd598a0e9138c5ff0ce2d1 /src/basic/macro.h | |
parent | Merge pull request #23504 from keszybz/bls-reordering (diff) | |
download | systemd-b41ebe3d18f8ac1270329747c64fe1949843f2b6.tar.xz systemd-b41ebe3d18f8ac1270329747c64fe1949843f2b6.zip |
macro: Move attribute defintions to macro-fundamental
This also sorts them.
Diffstat (limited to 'src/basic/macro.h')
-rw-r--r-- | src/basic/macro.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/basic/macro.h b/src/basic/macro.h index e6f89608f4..9727279155 100644 --- a/src/basic/macro.h +++ b/src/basic/macro.h @@ -11,24 +11,6 @@ #include "macro-fundamental.h" -#define _printf_(a, b) __attribute__((__format__(printf, a, b))) -#ifdef __clang__ -# define _alloc_(...) -#else -# define _alloc_(...) __attribute__((__alloc_size__(__VA_ARGS__))) -#endif -#define _sentinel_ __attribute__((__sentinel__)) -#define _destructor_ __attribute__((__destructor__)) -#define _deprecated_ __attribute__((__deprecated__)) -#define _malloc_ __attribute__((__malloc__)) -#define _weak_ __attribute__((__weak__)) -#define _public_ __attribute__((__visibility__("default"))) -#define _hidden_ __attribute__((__visibility__("hidden"))) -#define _weakref_(x) __attribute__((__weakref__(#x))) -#define _alignas_(x) __attribute__((__aligned__(__alignof__(x)))) -#define _alignptr_ __attribute__((__aligned__(sizeof(void*)))) -#define _warn_unused_result_ __attribute__((__warn_unused_result__)) - #if !defined(HAS_FEATURE_MEMORY_SANITIZER) # if defined(__has_feature) # if __has_feature(memory_sanitizer) |