haiku/headers/compatibility/bsd/features.h
Jérôme Duval 0db785d66c features.h: undef before define
Change-Id: Iba98e3a8352801345acefe963917471992f70281
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3606
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-01-07 09:14:57 +00:00

23 lines
436 B
C

/*
* 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))
#undef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
#undef _ISOC11_SOURCE
#define _ISOC11_SOURCE
#endif
#endif // _FEATURES_H