diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-12-18 13:52:13 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-12-18 13:52:44 +0000 |
commit | b970a11ce18b9413167dcf8904c0a673240be46c (patch) | |
tree | 9b3cd071c3efd73e9465bd8ec855dbd7a64b248f /main/libc-dev/sys-cdefs.h | |
parent | 211f26ed8b6729fd1e9e2ece00aa4dea0f6b3c12 (diff) | |
download | aports-b970a11ce18b9413167dcf8904c0a673240be46c.tar.bz2 aports-b970a11ce18b9413167dcf8904c0a673240be46c.tar.xz |
main/libc-dev: ship sys/cdefs.h for musl
Diffstat (limited to 'main/libc-dev/sys-cdefs.h')
-rw-r--r-- | main/libc-dev/sys-cdefs.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/main/libc-dev/sys-cdefs.h b/main/libc-dev/sys-cdefs.h new file mode 100644 index 0000000000..a60f0e2ae0 --- /dev/null +++ b/main/libc-dev/sys-cdefs.h @@ -0,0 +1,24 @@ +#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 |