]> 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 16:08:26 +0000 (18:08 +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 f8d37c5aae706cd364db4cecfaf1b8f51c190bde..83d513696e13203a3e2be5cfe39a56418057fa44 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 d38382ad9d80f11f2c6bd255d502f87c63fe26d0..9c49eeb413e2402795a58ae6d278c972b417335f 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 0abc44970433110928922134341d433d4b7d1e46..49449315cfdcceb9aa18496b4887e2df0eb8a7ef 100644 (file)
@@ -131,7 +131,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 38572382d46f8dea55d1ef5a68088f39a7e47386..3aee33c890a1a5a37ccc7b03aa479abc854346d7 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 e42368eef270a1948173954ada321d26ccad9ce7..96f8eb2f4c5740748563699b9fc968e1ed1b945e 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 b34b4534bfe6e79dfd3e3df49c16f4183a6639b3..71d90dfe7147687f04af7b605e99003f6de6f488 100644 (file)
@@ -1,5 +1,5 @@
 # gnulib-common.m4
-# serial 95
+# serial 96
 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,
@@ -488,7 +488,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