]> Savannah Git Hosting - gnulib.git/commitdiff
attribute: minor fixups
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 3 May 2020 20:58:06 +0000 (13:58 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 3 May 2020 20:58:27 +0000 (13:58 -0700)
Suggested by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2020-05/msg00049.html

lib/attribute.h
lib/mbrtoc32.c
lib/nstrftime.c

index ffd9bdfa28908dcdbad7c4771b1c6c3d3d3f6707..4861c17364890fcd45e27621608a1bffc1464b4a 100644 (file)
@@ -30,8 +30,9 @@
 #define MAYBE_UNUSED _GL_ATTRIBUTE_MAYBE_UNUSED
 #define NODISCARD _GL_ATTRIBUTE_NODISCARD
 
-/* Attributes from GCC have macro names beginning with 'ATTRIBUTE_' to
-   avoid name clashes.  */
+/* Selected GCC attributes; see:
+   https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html
+   These names begin with 'ATTRIBUTE_' to avoid name clashes.  */
 #define ATTRIBUTE_ALLOC_SIZE(args) _GL_ATTRIBUTE_ALLOC_SIZE(args)
 #define ATTRIBUTE_ALWAYS_INLINE _GL_ATTRIBUTE_ALWAYS_INLINE
 #define ATTRIBUTE_ARTIFICIAL _GL_ATTRIBUTE_ARTIFICIAL
index dc35ba2d4240d2ed9e186a8cafe12614cd35cbfd..04f3dbd2ace1fa49c82c453ea686a43e3c73cd8c 100644 (file)
@@ -21,7 +21,7 @@
 /* Specification.  */
 #include <uchar.h>
 
-#include <attribute.h>
+#include "attribute.h"
 
 #include <errno.h>
 #include <stdlib.h>
index 5326de60f70106e2759445ac9fa58710df031b2a..fa7ac538dadf25469555386db7a7c8ec00899585 100644 (file)
@@ -68,7 +68,7 @@ extern char *tzname[];
 #include <string.h>
 #include <stdbool.h>
 
-#include <attribute.h>
+#include "attribute.h"
 #include <intprops.h>
 
 #ifdef COMPILE_WIDE