summaryrefslogtreecommitdiff
path: root/lib/getopt-cdefs.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/getopt-cdefs.in.h')
-rw-r--r--lib/getopt-cdefs.in.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getopt-cdefs.in.h b/lib/getopt-cdefs.in.h
index c510ab163c3..674838c666a 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