123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- #ifndef _SYS_CDEFS_H
- #define _SYS_CDEFS_H 1
- #ifndef _FEATURES_H
- # include <features.h>
- #endif
- #if defined __GNUC__ && !defined __STDC__
- # error "You need a ISO C conforming compiler to use the glibc headers"
- #endif
- #undef __P
- #undef __PMT
- #ifdef __GNUC__
- # if defined __cplusplus && __GNUC_PREREQ (2,8)
- # define __THROW throw ()
- # else
- # define __THROW
- # endif
- # define __P(args) args __THROW
- # define __PMT(args) args
- #else
- # define __inline
- # define __THROW
- # define __P(args) args
- # define __PMT(args) args
- # define __const const
- # define __signed signed
- # define __volatile volatile
- #endif
- #define __CONCAT(x,y) x ## y
- #define __STRING(x) #x
- #define __ptr_t void *
- #define __long_double_t long double
- #ifdef __cplusplus
- # define __BEGIN_DECLS extern "C" {
- # define __END_DECLS }
- #else
- # define __BEGIN_DECLS
- # define __END_DECLS
- #endif
- #ifndef __BOUNDED_POINTERS__
- # define __bounded
- # define __unbounded
- # define __ptrvalue
- #endif
- #if __GNUC_PREREQ (2,97)
- # define __flexarr []
- #else
- # ifdef __GNUC__
- # define __flexarr [0]
- # else
- # if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
- # define __flexarr []
- # else
- # define __flexarr [1]
- # endif
- # endif
- #endif
- #if defined __GNUC__ && __GNUC__ >= 2
- # define __REDIRECT(name, proto, alias) name proto __asm__ (__ASMNAME (#alias))
- # define __ASMNAME(cname) C_SYMBOL_PREFIX cname
- #endif
- #if !defined __GNUC__ || __GNUC__ < 2
- # define __attribute__(xyz)
- #endif
- #if __GNUC_PREREQ (2,96)
- # define __attribute_malloc__ __attribute__ ((__malloc__))
- #else
- # define __attribute_malloc__
- #endif
- #if __GNUC_PREREQ (2,96)
- # define __attribute_pure__ __attribute__ ((__pure__))
- #else
- # define __attribute_pure__
- #endif
- #if __GNUC_PREREQ (2,8)
- # define __attribute_format_arg__(x) __attribute__ ((__format_arg__ (x)))
- #else
- # define __attribute_format_arg__(x)
- #endif
- #if __GNUC_PREREQ (2,97)
- # define __attribute_format_strfmon__(a,b) \
- __attribute__ ((__format__ (__strfmon__, a, b)))
- #else
- # define __attribute_format_strfmon__(a,b)
- #endif
- #if !__GNUC_PREREQ (2,8)
- # define __extension__
- #endif
- #if !__GNUC_PREREQ (2,92)
- # define __restrict
- #endif
- #if __GNUC_PREREQ (3,1) && !defined __GNUG__
- # define __restrict_arr __restrict
- #else
- # ifdef __GNUC__
- # define __restrict_arr
- # else
- # if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
- # define __restrict_arr restrict
- # else
- # define __restrict_arr
- # endif
- # endif
- #endif
- #endif
|