From 6a20139f5c5d89bd21cf85d85a53859be15187a9 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Fri, 20 Mar 2026 23:48:28 +0000 Subject: [PATCH] Add a macro to remove __attribute__(()) if not compiling with GCC. --- src/include/config-aux.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/include/config-aux.h b/src/include/config-aux.h index 45a5f3b..2dcbc27 100644 --- a/src/include/config-aux.h +++ b/src/include/config-aux.h @@ -51,3 +51,8 @@ typedef bool _Bool; #define PV_REMOTE_CONTROL 1 # endif #endif + +/* Remove __attribute__(()) if not using GCC. */ +#ifndef __GNUC__ +#define __attribute__(x) /* GCC-only feature */ +#endif