]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
cdefs.h: fix "__clang_major" typo
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Dec 2021 22:13:29 +0000 (14:13 -0800)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 27 Feb 2023 11:18:24 +0000 (08:18 -0300)
* misc/sys/cdefs.h: Fix misspelling of "__clang_major__".
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
misc/sys/cdefs.h

index c37a3ff6373c3636779d1310a841d927f3b6baee..23ec0ebd2ac8a6e50054810787a7493a32b6578c 100644 (file)
@@ -81,7 +81,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