|
|
1.1 root 1: #ifndef __SYS_COMPAT_H__
2: #define __SYS_COMPAT_H__
3:
4: /*
5: * This file provides glue to export the system-private compatibility
6: * definitions from <common/ccompat.h> with names that are valid for user-
7: * level code to use.
8: */
9:
10: #include <common/ccompat.h>
11:
12: #if __USE_PROTO__
13: # define USE_PROTO __USE_PROTO__
14: #endif
15:
16: #define STRING(x) __STRING (x)
17: #define CONCAT(x,y) __CONCAT (x, y)
18: #define CONCAT3(x,y,z) __CONCAT3 (x, y, z)
19: #define CONCAT4(a,b,c,d) __CONCAT4 (a, b, c, d)
20: #define PROTO(p) __PROTO (p)
21: #define CONST __CONST__
22: #define VOLATILE __VOLATILE__
23: #define VOID __VOID__
24: #define NOTUSED(name) __NOTUSED (name)
25: #define REGISTER __REGISTER__
26: #define EXTERN_C __EXTERN_C__
27: #define EXTERN_C_BEGIN __EXTERN_C_BEGIN__
28: #define EXTERN_C_END __EXTERN_C_END__
29: #define NON_ISO(k) __NON_ISO(k)
30:
31: #if __USE_INLINE__
32: # define USE_INLINE __USE_INLINE__
33: #endif
34:
35: #if __USE_INLINEL__
36: # define USE_INLINEL __USE_INLINEL__
37: #endif
38:
39: #define INLINE __INLINE__
40: #define INLINEL __INLINEL__
41:
42: #define ANY_ARGS __ANY_ARGS__
43:
44: #define ARGS(x) __ARGS(x)
45:
46: #ifndef LOCAL
47: # define LOCAL static
48: #endif
49:
50: #if ! __PEDANTIC__
51: # define NO_RETURN __NO_RETURN__
52: #else
53: # define NO_RETURN
54: #endif
55:
56: #endif /* ! defined (__SYS_COMPAT_H__) */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.