summaryrefslogtreecommitdiffstats
path: root/gl/cdefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/cdefs.h')
-rw-r--r--gl/cdefs.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/gl/cdefs.h b/gl/cdefs.h
index d38382ad..dce5739d 100644
--- a/gl/cdefs.h
+++ b/gl/cdefs.h
@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2024 Free Software Foundation, Inc. 1/* Copyright (C) 1992-2025 Free Software Foundation, Inc.
2 Copyright The GNU Toolchain Authors. 2 Copyright The GNU Toolchain Authors.
3 This file is part of the GNU C Library. 3 This file is part of the GNU C Library.
4 4
@@ -83,7 +83,7 @@
83# define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct 83# define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct
84# define __NTHNL(fct) __attribute__ ((__nothrow__)) fct 84# define __NTHNL(fct) __attribute__ ((__nothrow__)) fct
85# else 85# else
86# if defined __cplusplus && (__GNUC_PREREQ (2,8) || __clang_major >= 4) 86# if defined __cplusplus && (__GNUC_PREREQ (2,8) || __clang_major__ >= 4)
87# if __cplusplus >= 201103L 87# if __cplusplus >= 201103L
88# define __THROW noexcept (true) 88# define __THROW noexcept (true)
89# else 89# else
@@ -277,10 +277,10 @@
277*/ 277*/
278#endif 278#endif
279 279
280/* GCC and clang have various useful declarations that can be made with 280/* GCC, clang, and compatible compilers have various useful declarations
281 the '__attribute__' syntax. All of the ways we use this do fine if 281 that can be made with the '__attribute__' syntax. All of the ways we use
282 they are omitted for compilers that don't understand it. */ 282 this do fine if they are omitted for compilers that don't understand it. */
283#if !(defined __GNUC__ || defined __clang__) 283#if !(defined __GNUC__ || defined __clang__ || defined __TINYC__)
284# define __attribute__(xyz) /* Ignore */ 284# define __attribute__(xyz) /* Ignore */
285#endif 285#endif
286 286
@@ -482,7 +482,7 @@
482 run in pedantic mode if the uses are carefully marked using the 482 run in pedantic mode if the uses are carefully marked using the
483 `__extension__' keyword. But this is not generally available before 483 `__extension__' keyword. But this is not generally available before
484 version 2.8. */ 484 version 2.8. */
485#if !(__GNUC_PREREQ (2,8) || defined __clang__) 485#if ! (__GNUC_PREREQ (2,8) || defined __clang__ || 0x5150 <= __SUNPRO_C)
486# define __extension__ /* Ignore */ 486# define __extension__ /* Ignore */
487#endif 487#endif
488 488
@@ -497,7 +497,7 @@
497# endif 497# endif
498#endif 498#endif
499 499
500/* ISO C99 also allows to declare arrays as non-overlapping. The syntax is 500/* ISO C99 also allows declaring arrays as non-overlapping. The syntax is
501 array_name[restrict] 501 array_name[restrict]
502 GCC 3.1 and clang support this. 502 GCC 3.1 and clang support this.
503 This syntax is not usable in C++ mode. */ 503 This syntax is not usable in C++ mode. */