From 19f015d8e6d67b8e4c6eab0e4befde95fe47b9ee Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 9 Dec 2025 21:10:52 +0100 Subject: [PATCH] os.h: fix _X_ATTRIBUTE_VPRINTF() macro on MacOS and FreeBSD their compiler doesn't seem to support gnu_printf attribute. Signed-off-by: Enrico Weigelt, metux IT consult --- include/os.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/os.h b/include/os.h index 1108b2535..519c465ce 100644 --- a/include/os.h +++ b/include/os.h @@ -70,7 +70,7 @@ SOFTWARE. #endif #ifndef _X_ATTRIBUTE_VPRINTF -# if defined(__GNUC__) && (__GNUC__ >= 2) +# if defined(__GNUC__) && (__GNUC__ >= 2) && (!defined(__APPLE__)) && (!defined(__FreeBSD__)) # define _X_ATTRIBUTE_VPRINTF(fmt, firstarg) \ __attribute__((__format__(gnu_printf, fmt, firstarg))) # else