summaryrefslogtreecommitdiffstats
path: root/contrib/gcclibs
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2016-09-11 14:19:06 +0000
committerdim <dim@FreeBSD.org>2016-09-11 14:19:06 +0000
commit047867cccaa37825903750a3217ea127d829ea95 (patch)
tree56bf27bccf287779b98dec69d56d4a203c538bd7 /contrib/gcclibs
parent2c4c5ee1df5fc44bc2d48888e0f6d7344afa59ce (diff)
downloadFreeBSD-src-047867cccaa37825903750a3217ea127d829ea95.zip
FreeBSD-src-047867cccaa37825903750a3217ea127d829ea95.tar.gz
MFC r305430:
Define libcpp's HAVE_DESIGNATED_INITIALIZERS in a defined and portable way.
Diffstat (limited to 'contrib/gcclibs')
-rw-r--r--contrib/gcclibs/libcpp/system.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/gcclibs/libcpp/system.h b/contrib/gcclibs/libcpp/system.h
index e08bdf1..da015e2 100644
--- a/contrib/gcclibs/libcpp/system.h
+++ b/contrib/gcclibs/libcpp/system.h
@@ -347,9 +347,12 @@ extern void abort (void);
??? C99 designated initializers are not supported by most C++
compilers, including G++. -- gdr, 2005-05-18 */
#if !defined(HAVE_DESIGNATED_INITIALIZERS)
-#define HAVE_DESIGNATED_INITIALIZERS \
- ((!defined(__cplusplus) && (GCC_VERSION >= 2007)) \
- || (__STDC_VERSION__ >= 199901L))
+# if (!defined(__cplusplus) && (GCC_VERSION >= 2007)) \
+ ||(__STDC_VERSION__ >= 199901L)
+# define HAVE_DESIGNATED_INITIALIZERS 1
+# else
+# define HAVE_DESIGNATED_INITIALIZERS 0
+# endif
#endif
/* Be conservative and only use enum bitfields with GCC.
OpenPOWER on IntegriCloud