mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Define libcpp's HAVE_DESIGNATED_INITIALIZERS in a defined and portable
way. MFC after: 3 days
This commit is contained in:
parent
29d492ace1
commit
18c0121132
1 changed files with 6 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue