features.h: enable ISOC11 definitions for _GNU_SOURCE and C++17
this is needed for GCC to build after the aligned_alloc introduction Change-Id: Ieae32a050cc000561107c4a07cf10c912a196152 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3896 Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
parent
0319710ec5
commit
144f45a030
@ -12,11 +12,21 @@
|
||||
#define _DEFAULT_SOURCE
|
||||
#endif
|
||||
|
||||
#if defined(_GNU_SOURCE)
|
||||
#undef _ISOC11_SOURCE
|
||||
#define _ISOC11_SOURCE
|
||||
#undef _DEFAULT_SOURCE
|
||||
#define _DEFAULT_SOURCE
|
||||
#endif
|
||||
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
||||
#undef _ISOC11_SOURCE
|
||||
#define _ISOC11_SOURCE
|
||||
#endif
|
||||
|
||||
#if defined(__cplusplus) && __cplusplus >= 201703L
|
||||
#undef _ISOC11_SOURCE
|
||||
#define _ISOC11_SOURCE
|
||||
#endif
|
||||
|
||||
#endif // _FEATURES_H
|
||||
|
Loading…
Reference in New Issue
Block a user