From: Alejandro Colomar Date: Mon, 22 Jan 2024 21:42:46 +0000 (+0100) Subject: lib/must_be.h: is_same_typeof(): Rename macro X-Git-Tag: 4.15.0-rc1~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c5e433a3aff44f91af9c0ba2dcadd5a2da2e37a;p=thirdparty%2Fshadow.git lib/must_be.h: is_same_typeof(): Rename macro Signed-off-by: Alejandro Colomar --- diff --git a/lib/must_be.h b/lib/must_be.h index 2ca7b62a2..624849167 100644 --- a/lib/must_be.h +++ b/lib/must_be.h @@ -90,9 +90,9 @@ */ -#define is_same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) -#define is_array(a) (!is_same_type((a), &(a)[0])) -#define must_be_array(a) must_be(is_array(a)) +#define is_same_typeof(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) +#define is_array(a) (!is_same_typeof((a), &(a)[0])) +#define must_be_array(a) must_be(is_array(a)) #endif // include guard