]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
libc-config: Don't disable __attribute__ when compiling with Tiny C.
authorEric Wong <normalperson@yhbt.net>
Thu, 30 Oct 2025 22:54:59 +0000 (23:54 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 30 Oct 2025 22:54:59 +0000 (23:54 +0100)
* lib/cdefs.h (__attribute__): Don't define to empty on Tiny C.

Copyright-paperwork-exempt: Yes

ChangeLog
lib/cdefs.h

index b7f0310e00751072450454efaff4f6b4dd67ea20..a1881fa7ab342ee0b3bdab13b474e42157eb038e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-10-30  Eric Wong  <normalperson@yhbt.net>  (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  <bruno@clisp.org>
 
        fprintftime: Avoid size_t overflow for very large outputs.
index 2682c092f0e40b8c6ccc4db8133a953531997524..dce5739d235f9ce2454e1a1dd4726d8cd99e2de3 100644 (file)
 */
 #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