From: Eric Wong Date: Thu, 30 Oct 2025 22:54:59 +0000 (+0100) Subject: libc-config: Don't disable __attribute__ when compiling with Tiny C. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ea13f65f029ff98d6aa7576883c2de961a1ebb2;p=thirdparty%2Fgnulib.git libc-config: Don't disable __attribute__ when compiling with Tiny C. * lib/cdefs.h (__attribute__): Don't define to empty on Tiny C. Copyright-paperwork-exempt: Yes --- diff --git a/ChangeLog b/ChangeLog index b7f0310e00..a1881fa7ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2025-10-30 Eric Wong (tiny change) + + libc-config: Don't disable __attribute__ when compiling with Tiny C. + * lib/cdefs.h (__attribute__): Don't define to empty on Tiny C. + 2025-10-30 Bruno Haible fprintftime: Avoid size_t overflow for very large outputs. diff --git a/lib/cdefs.h b/lib/cdefs.h index 2682c092f0..dce5739d23 100644 --- a/lib/cdefs.h +++ b/lib/cdefs.h @@ -277,10 +277,10 @@ */ #endif -/* GCC and clang have various useful declarations that can be made with - the '__attribute__' syntax. All of the ways we use this do fine if - they are omitted for compilers that don't understand it. */ -#if !(defined __GNUC__ || defined __clang__) +/* GCC, clang, and compatible compilers have various useful declarations + that can be made with the '__attribute__' syntax. All of the ways we use + this do fine if they are omitted for compilers that don't understand it. */ +#if !(defined __GNUC__ || defined __clang__ || defined __TINYC__) # define __attribute__(xyz) /* Ignore */ #endif