1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-05 19:47:09 +01:00
build/pkg/musl/sys-cdefs.h
David Oberhollenzer b2fa4c2b76 Add sys/{cdefs,queue,tree}.h headers from NetBSD to musl
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-08-10 21:31:32 +02:00

26 lines
539 B
C

#warning usage of non-standard #include <sys/cdefs.h> is deprecated
#undef __P
#undef __PMT
#define __P(args) args
#define __PMT(args) args
#define __CONCAT(x,y) x ## y
#define __STRING(x) #x
#ifdef __cplusplus
# define __BEGIN_DECLS extern "C" {
# define __END_DECLS }
#else
# define __BEGIN_DECLS
# define __END_DECLS
#endif
#if defined(__GNUC__) && !defined(__cplusplus)
# define __THROW __attribute__ ((__nothrow__))
# define __NTH(fct) __attribute__ ((__nothrow__)) fct
#else
# define __THROW
# define __NTH(fct) fct
#endif