aports/main/libc-dev/sys-cdefs.h
psykose 30f3fb2b21 main/libc-dev: add guard to cdefs.h
ported change from void linux
0b4183aa05
2023-01-22 01:52:12 +01:00

32 lines
612 B
C

#ifndef _SYS_CDEFS_H_
#define _SYS_CDEFS_H_
#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
#endif /* _SYS_CDEFS_H_ */