OSDN Git Service

Some more major updates to further superate ucLibc from the kernel
[uclinux-h8/uClibc.git] / include / features.h
1
2 #ifndef __FEATURES_H
3 #define __FEATURES_H
4
5
6 /* Major and minor version number of the uCLibc library package.  Use
7    these macros to test for features in specific releases.  */
8 #define __UCLIBC__              0
9 #define __UCLIBC_MAJOR__        9
10 #define __UCLIBC_MINOR__        1
11
12
13 #ifdef __STDC__
14
15 #define __P(x) x
16 #define __const const
17
18 /* Almost ansi */
19 #if __STDC__ != 1
20 #define const
21 #define volatile
22 #endif
23
24 #else /* K&R */
25
26 #define __P(x) ()
27 #define __const
28 #define const
29 #define volatile
30
31 #endif
32
33 /* No C++ */
34 #define __BEGIN_DECLS
35 #define __END_DECLS
36
37 /* GNUish things */
38 #define __CONSTVALUE
39 #define __CONSTVALUE2
40
41 #define __USE_BSD
42 #define __USE_MISC
43 #define __USE_POSIX
44 #define _POSIX_THREAD_SAFE_FUNCTIONS
45
46 #include <sys/cdefs.h>
47
48
49 #endif
50