summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/musl/bsd-headers/sys-cdefs.h
blob: 841a5da8ba40a0a247bc12d0528fdc6f023c66f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#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

#define __CONCAT(x,y)   x ## y
#define __STRING(x)     #x

#endif /* _SYS_CDEFS_H_ */