2019-07-20 12:02:02 +02:00
|
|
|
/*
|
2021-11-16 15:11:44 -05:00
|
|
|
* Copyright 2019-2021, Haiku, Inc. All rights reserved.
|
2019-07-20 12:02:02 +02:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _FEATURES_H
|
|
|
|
#define _FEATURES_H
|
|
|
|
|
|
|
|
|
2021-11-17 13:55:50 -05:00
|
|
|
#if defined(_BSD_SOURCE) || defined(_GNU_SOURCE) \
|
2019-07-20 12:02:02 +02:00
|
|
|
|| (!defined(__STRICT_ANSI__) && !defined(_POSIX_C_SOURCE))
|
2021-01-04 18:52:20 +01:00
|
|
|
#undef _DEFAULT_SOURCE
|
2019-07-20 12:02:02 +02:00
|
|
|
#define _DEFAULT_SOURCE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2021-11-16 15:11:44 -05:00
|
|
|
#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) \
|
|
|
|
|| (defined(__cplusplus) && __cplusplus >= 201103L)
|
2021-01-04 18:52:20 +01:00
|
|
|
#undef _ISOC11_SOURCE
|
2020-10-31 20:34:20 +01:00
|
|
|
#define _ISOC11_SOURCE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2024-08-23 11:05:35 +02:00
|
|
|
#endif /* _FEATURES_H */
|