]> 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, 29 Jul 2024 19:59:44 +0000 (21:59 +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 b2e8956cafb1dc6d260bdd08727f6f98e4db7111..0ca76f8d40ca175a35ff0f5df40ba7d0568544ca 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 4ea4e3cc16f6d1360606861caed658b269f85d51..39c1182f7eec98d2bbfeed27a24c365a3e412e00 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 d86b3ad53c6649728ce0fd0c50728b366db90c7f..29a48e86ae089558ea1d792ed895b12e155ec21b 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