diff options
author | Bruno Haible <bruno@clisp.org> | 2020-08-16 18:57:22 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-08-16 18:57:22 +0200 |
commit | 869cb2ad5f52a556dde0e88bf0ccc09985883003 (patch) | |
tree | a0db2fab0bba462e2edf41d8111e491e4c9298af /lib/getopt-cdefs.in.h | |
parent | 1e643a62378e01e34f6eb46400dc8260e96927d4 (diff) | |
download | gnulib-869cb2ad5f52a556dde0e88bf0ccc09985883003.tar.gz |
Use 'throw ()' for optimization in C++ mode also on clang.
* lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
* lib/getopt-cdefs.in.h (__THROW): Likewise.
* lib/md5.h (__THROW): Likewise.
Diffstat (limited to 'lib/getopt-cdefs.in.h')
-rw-r--r-- | lib/getopt-cdefs.in.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getopt-cdefs.in.h b/lib/getopt-cdefs.in.h index 89a7b85edb..641e5e9a0c 100644 --- a/lib/getopt-cdefs.in.h +++ b/lib/getopt-cdefs.in.h @@ -57,7 +57,7 @@ #endif #ifndef __THROW -# if defined __cplusplus && __GNUC_PREREQ (2,8) +# if defined __cplusplus && (__GNUC_PREREQ (2,8) || __clang_major__ >= 4) # define __THROW throw () # else # define __THROW |