diff options
Diffstat (limited to 'lib/getopt-cdefs.in.h')
-rw-r--r-- | lib/getopt-cdefs.in.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/getopt-cdefs.in.h b/lib/getopt-cdefs.in.h index 7a791392de5..a1d304d49e8 100644 --- a/lib/getopt-cdefs.in.h +++ b/lib/getopt-cdefs.in.h @@ -57,7 +57,11 @@ #ifndef __THROW # if defined __cplusplus && (__GNUC_PREREQ (2,8) || __clang_major__ >= 4) -# define __THROW throw () +# if __cplusplus >= 201103L +# define __THROW noexcept (true) +# else +# define __THROW throw () +# endif # else # define __THROW # endif |