]> Savannah Git Hosting - gnulib.git/commitdiff
Fix misspelling of __clang_major__.
authorBruno Haible <bruno@clisp.org>
Mon, 29 Jul 2024 19:59:44 +0000 (21:59 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 12 Aug 2024 17:10:38 +0000 (19:10 +0200)
* lib/cdefs.h (__THROW, __THROWNL, __NTH, __NTHNL): Fix misspelled macro
name.
* m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
* lib/malloc.in.h (_GL_ATTRIBUTE_NOTHROW): Likewise.
* lib/stddef.in.h (_GL_ATTRIBUTE_NOTHROW): Likewise.
* lib/stdio.in.h (_GL_ATTRIBUTE_NOTHROW): Likewise.
* lib/stdlib.in.h (_GL_ATTRIBUTE_NOTHROW): Likewise.
* lib/string.in.h (_GL_ATTRIBUTE_NOTHROW): Likewise.
* lib/sys_stat.in.h (_GL_ATTRIBUTE_NOTHROW): Likewise.
* lib/wchar.in.h (_GL_ATTRIBUTE_NOTHROW): Likewise.

ChangeLog
lib/cdefs.h
lib/malloc.in.h
lib/stddef.in.h
lib/stdio.in.h
lib/stdlib.in.h
lib/string.in.h
lib/sys_stat.in.h
lib/wchar.in.h
m4/gnulib-common.m4

index f5fe167e48f0da23bd5b7571df75d6057bf4681f..eeef413a71bb8c938fb88bf9b6bc2a7dd0639856 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2024-07-29  Bruno Haible  <bruno@clisp.org>
+
+       Fix misspelling of __clang_major__.
+       * lib/cdefs.h (__THROW, __THROWNL, __NTH, __NTHNL): Fix misspelled macro
+       name.
+       * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
+       * lib/malloc.in.h (_GL_ATTRIBUTE_NOTHROW): Likewise.
+       * lib/stddef.in.h (_GL_ATTRIBUTE_NOTHROW): Likewise.
+       * lib/stdio.in.h (_GL_ATTRIBUTE_NOTHROW): Likewise.
+       * lib/stdlib.in.h (_GL_ATTRIBUTE_NOTHROW): Likewise.
+       * lib/string.in.h (_GL_ATTRIBUTE_NOTHROW): Likewise.
+       * lib/sys_stat.in.h (_GL_ATTRIBUTE_NOTHROW): Likewise.
+       * lib/wchar.in.h (_GL_ATTRIBUTE_NOTHROW): Likewise.
+
 2024-07-29  Bruno Haible  <bruno@clisp.org>
 
        chdir: Fix mistake in GNULIB_POSIXCHECK.
index 6cc5581c0e07a078722f3438e22f5091a843af38..849c418cf56b30e892bd4041688aeb90fff5eca4 100644 (file)
@@ -83,7 +83,7 @@
 #  define __NTH(fct)   __attribute__ ((__nothrow__ __LEAF)) fct
 #  define __NTHNL(fct)  __attribute__ ((__nothrow__)) fct
 # else
-#  if defined __cplusplus && (__GNUC_PREREQ (2,8) || __clang_major >= 4)
+#  if defined __cplusplus && (__GNUC_PREREQ (2,8) || __clang_major__ >= 4)
 #   if __cplusplus >= 201103L
 #    define __THROW    noexcept (true)
 #   else
index 3ca364cbe2c445a32b654d03baee6e631812197e..a08f21fb84f1a6c7868b81792169c0a1022550ed 100644 (file)
@@ -65,7 +65,7 @@
  */
 #ifndef _GL_ATTRIBUTE_NOTHROW
 # if defined __cplusplus
-#  if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major >= 4
+#  if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major__ >= 4
 #   if __cplusplus >= 201103L
 #    define _GL_ATTRIBUTE_NOTHROW noexcept (true)
 #   else
index 649cb9ca9b01f6a8a9cb8baff75c2c56580a22ce..31906e6d57ad8069f8cabf8dba803df54c198534 100644 (file)
@@ -127,7 +127,7 @@ typedef long max_align_t;
  */
 #ifndef _GL_ATTRIBUTE_NOTHROW
 # if defined __cplusplus
-#  if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major >= 4
+#  if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major__ >= 4
 #   if __cplusplus >= 201103L
 #    define _GL_ATTRIBUTE_NOTHROW noexcept (true)
 #   else
index 4947307e578e9ffc6417fa9adb2e83caf1b32224..0fdf762a19ff20d791dcd0107bba64ee53e4311f 100644 (file)
  */
 #ifndef _GL_ATTRIBUTE_NOTHROW
 # if defined __cplusplus
-#  if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major >= 4
+#  if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major__ >= 4
 #   if __cplusplus >= 201103L
 #    define _GL_ATTRIBUTE_NOTHROW noexcept (true)
 #   else
index d068d0cb58f16ceedf9a4b2ac94f99da11c418ce..cbdbbd3472106348a6c78f708ab9f7396a021eb2 100644 (file)
@@ -161,7 +161,7 @@ struct random_data
  */
 #ifndef _GL_ATTRIBUTE_NOTHROW
 # if defined __cplusplus
-#  if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major >= 4
+#  if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major__ >= 4
 #   if __cplusplus >= 201103L
 #    define _GL_ATTRIBUTE_NOTHROW noexcept (true)
 #   else
index 44ec2e7ecdb5070ddf684d739f298e37cceedb17..613d0337d5f58c7866082a1705930d4e16aa3768 100644 (file)
  */
 #ifndef _GL_ATTRIBUTE_NOTHROW
 # if defined __cplusplus
-#  if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major >= 4
+#  if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major__ >= 4
 #   if __cplusplus >= 201103L
 #    define _GL_ATTRIBUTE_NOTHROW noexcept (true)
 #   else
index 820c1087f7450cddee6ab0f5b819b99860e76dc4..1e82399c87b3bbafa355ac81d90e492aeeaa4a43 100644 (file)
@@ -65,7 +65,7 @@
  */
 #ifndef _GL_ATTRIBUTE_NOTHROW
 # if defined __cplusplus
-#  if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major >= 4
+#  if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major__ >= 4
 #   if __cplusplus >= 201103L
 #    define _GL_ATTRIBUTE_NOTHROW noexcept (true)
 #   else
index a33a10f7472f42dfbc1d555a3b710c0dae6f274c..5261692fc94f580a7e2966fdb36cab52b1f17071 100644 (file)
  */
 #ifndef _GL_ATTRIBUTE_NOTHROW
 # if defined __cplusplus
-#  if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major >= 4
+#  if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 2) || __clang_major__ >= 4
 #   if __cplusplus >= 201103L
 #    define _GL_ATTRIBUTE_NOTHROW noexcept (true)
 #   else
index c9a8a7d7a6a049613a6f103e36833b779a299896..f59d0ccb18954f4a3753cee588d9f1214fcaafa2 100644 (file)
@@ -1,4 +1,4 @@
-# gnulib-common.m4 serial 89.3
+# gnulib-common.m4 serial 89.4
 dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -480,7 +480,7 @@ AC_DEFUN([gl_COMMON_BODY], [
    other attributes.  */
 #ifndef _GL_ATTRIBUTE_NOTHROW
 # if defined __cplusplus
-#  if _GL_GNUC_PREREQ (2, 8) || __clang_major >= 4
+#  if _GL_GNUC_PREREQ (2, 8) || __clang_major__ >= 4
 #   if __cplusplus >= 201103L
 #    define _GL_ATTRIBUTE_NOTHROW noexcept (true)
 #   else