Path: blob/main/system/lib/libc/musl/include/features.h
6174 views
#ifndef _FEATURES_H1#define _FEATURES_H23#if defined(_ALL_SOURCE) && !defined(_GNU_SOURCE)4#define _GNU_SOURCE 15#endif67#if defined(_DEFAULT_SOURCE) && !defined(_BSD_SOURCE)8#define _BSD_SOURCE 19#endif1011#if !defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE) \12&& !defined(_XOPEN_SOURCE) && !defined(_GNU_SOURCE) \13&& !defined(_BSD_SOURCE) && !defined(__STRICT_ANSI__)14#define _BSD_SOURCE 115#define _XOPEN_SOURCE 70016#endif1718#if defined(__EMSCRIPTEN__) && defined(_GNU_SOURCE)19// In emscripten the LFS functions are kept around when _GNU_SOURCE is20// defined, for increased compatabiliy. This is also what glibc does.21#undef _LARGEFILE64_SOURCE22#define _LARGEFILE64_SOURCE 123#endif2425#if __STDC_VERSION__ >= 199901L26#define __restrict restrict27#elif !defined(__GNUC__)28#define __restrict29#endif3031#if __STDC_VERSION__ >= 199901L || defined(__cplusplus)32#define __inline inline33#elif !defined(__GNUC__)34#define __inline35#endif3637#if __STDC_VERSION__ >= 201112L38#elif defined(__GNUC__)39#define _Noreturn __attribute__((__noreturn__))40#else41#define _Noreturn42#endif4344#define __REDIR(x,y) __typeof__(x) x __asm__(#y)4546#endif474849