1 #ifndef _SYS_CDEFS_H_
2 #define _SYS_CDEFS_H_
3 
4 #warning usage of non-standard #include <sys/cdefs.h> is deprecated
5 
6 #undef __P
7 #undef __PMT
8 
9 #define __P(args)	args
10 #define __PMT(args)	args
11 
12 #define __CONCAT(x,y)	x ## y
13 #define __STRING(x)	#x
14 
15 #ifdef  __cplusplus
16 # define __BEGIN_DECLS	extern "C" {
17 # define __END_DECLS	}
18 #else
19 # define __BEGIN_DECLS
20 # define __END_DECLS
21 #endif
22 
23 #if defined(__GNUC__) && !defined(__cplusplus)
24 # define __THROW	__attribute__ ((__nothrow__))
25 # define __NTH(fct)	__attribute__ ((__nothrow__)) fct
26 #else
27 # define __THROW
28 # define __NTH(fct)     fct
29 #endif
30 
31 #define __CONCAT(x,y)   x ## y
32 #define __STRING(x)     #x
33 
34 #endif /* _SYS_CDEFS_H_ */
35