e801e2299a0d81d02b8c887fae176e89c3f90e20
4 #if defined(_ALL_SOURCE) && !defined(_GNU_SOURCE)
8 #if defined(_DEFAULT_SOURCE) && !defined(_BSD_SOURCE)
12 #if !defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE) \
13 && !defined(_XOPEN_SOURCE) && !defined(_GNU_SOURCE) \
14 && !defined(_BSD_SOURCE) && !defined(__STRICT_ANSI__)
16 #define _XOPEN_SOURCE 700
19 #if __STDC_VERSION__ >= 199901L
20 #define __restrict restrict
21 #elif !defined(__GNUC__)
25 #if __STDC_VERSION__ >= 199901L || defined(__cplusplus)
26 #define __inline inline
27 #elif !defined(__GNUC__)
31 #if __STDC_VERSION__ >= 201112L
32 #elif defined(__GNUC__)
33 #define _Noreturn __attribute__((__noreturn__))
38 #define __REDIR(x,y) __typeof__(x) x __asm__(#y)
40 /* Convenience macros to test the versions of glibc and gcc.
42 #if __GNUC_PREREQ (2,8)
43 ... code requiring gcc 2.8 or later ...
45 Note - they won't work for gcc1 or glibc1, since the _MINOR macros
46 were not defined then. */
47 #if defined __GNUC__ && defined __GNUC_MINOR__
48 # define __GNUC_PREREQ(maj, min) \
49 ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
51 # define __GNUC_PREREQ(maj, min) 0
54 #include <sys/glibc-types.h>