From: Aki Tuomi Date: Thu, 28 Aug 2025 09:46:08 +0000 (+0300) Subject: lib: macros - Use __typeof__ instead of typeof from C11 onwards X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bd0509c8919db2c207beb5b68ebf043398ef7e9d;p=thirdparty%2Fdovecot%2Fcore.git lib: macros - Use __typeof__ instead of typeof from C11 onwards typeof and __typeof__ are not standard until C23, and C11 requires using __typeof__. --- diff --git a/src/lib/macros.h b/src/lib/macros.h index 5be1fceaa0..bccd09f8a7 100644 --- a/src/lib/macros.h +++ b/src/lib/macros.h @@ -3,6 +3,10 @@ /* several useful macros, mostly from glib.h */ +#ifdef __USE_ISOC11 +# define typeof __typeof__ +#endif + #ifndef NULL # define NULL ((void *)0) #endif