2019-07-20 13:02:02 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2019 Haiku, Inc. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _FEATURES_H
|
|
|
|
#define _FEATURES_H
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(_BSD_SOURCE) \
|
|
|
|
|| (!defined(__STRICT_ANSI__) && !defined(_POSIX_C_SOURCE))
|
2021-01-04 20:52:20 +03:00
|
|
|
#undef _DEFAULT_SOURCE
|
2019-07-20 13:02:02 +03:00
|
|
|
#define _DEFAULT_SOURCE
|
|
|
|
#endif
|
|
|
|
|
2021-05-02 14:07:42 +03:00
|
|
|
#if defined(_GNU_SOURCE)
|
|
|
|
#undef _ISOC11_SOURCE
|
|
|
|
#define _ISOC11_SOURCE
|
|
|
|
#undef _DEFAULT_SOURCE
|
|
|
|
#define _DEFAULT_SOURCE
|
|
|
|
#endif
|
2019-07-20 13:02:02 +03:00
|
|
|
|
2020-10-31 22:34:20 +03:00
|
|
|
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
2021-01-04 20:52:20 +03:00
|
|
|
#undef _ISOC11_SOURCE
|
2020-10-31 22:34:20 +03:00
|
|
|
#define _ISOC11_SOURCE
|
|
|
|
#endif
|
|
|
|
|
2021-05-02 14:07:42 +03:00
|
|
|
#if defined(__cplusplus) && __cplusplus >= 201703L
|
|
|
|
#undef _ISOC11_SOURCE
|
|
|
|
#define _ISOC11_SOURCE
|
|
|
|
#endif
|
2020-10-31 22:34:20 +03:00
|
|
|
|
2019-07-20 13:02:02 +03:00
|
|
|
#endif // _FEATURES_H
|