summaryrefslogtreecommitdiffstats
path: root/gl/getopt-cdefs.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/getopt-cdefs.in.h')
-rw-r--r--gl/getopt-cdefs.in.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gl/getopt-cdefs.in.h b/gl/getopt-cdefs.in.h
index e76c78c..a1d304d 100644
--- a/gl/getopt-cdefs.in.h
+++ b/gl/getopt-cdefs.in.h
@@ -1,5 +1,5 @@
1/* getopt-on-non-glibc compatibility macros. 1/* getopt-on-non-glibc compatibility macros.
2 Copyright (C) 1989-2023 Free Software Foundation, Inc. 2 Copyright (C) 1989-2024 Free Software Foundation, Inc.
3 This file is part of gnulib. 3 This file is part of gnulib.
4 Unlike most of the getopt implementation, it is NOT shared 4 Unlike most of the getopt implementation, it is NOT shared
5 with the GNU C Library. 5 with the GNU C Library.
@@ -57,7 +57,11 @@
57 57
58#ifndef __THROW 58#ifndef __THROW
59# if defined __cplusplus && (__GNUC_PREREQ (2,8) || __clang_major__ >= 4) 59# if defined __cplusplus && (__GNUC_PREREQ (2,8) || __clang_major__ >= 4)
60# define __THROW throw () 60# if __cplusplus >= 201103L
61# define __THROW noexcept (true)
62# else
63# define __THROW throw ()
64# endif
61# else 65# else
62# define __THROW 66# define __THROW
63# endif 67# endif