OSDN Git Service

Fix all the makefiles. Clean up some warnings, cleanup some headers.
[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 /* Make a half-hearted attempt to accomodate non-gcc compilers */
13 #ifndef __GNUC__
14 #define __attribute(foo)  /* Ignore */
15 #endif
16
17 /* __restrict is known in EGCS 1.2 and above. */
18 #if !defined __GNUC__ || __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 92)
19 # define __restrict     /* Ignore */
20 #endif
21
22
23 #ifdef __STDC__
24
25 #define __P(x) x
26 #define __const const
27
28 /* Almost ansi */
29 #if __STDC__ != 1
30 #define const
31 #define volatile
32 #endif
33
34 #else /* K&R */
35
36 #define __P(x) ()
37 #define __const
38 #define const
39 #define volatile
40
41 #endif
42
43 /* No C++ */
44 #define __BEGIN_DECLS
45 #define __END_DECLS
46
47 /* GNUish things */
48 #define __CONSTVALUE
49 #define __CONSTVALUE2
50
51 #define __USE_BSD
52 #define __USE_MISC
53 #define __USE_POSIX
54 #define __USE_POSIX2
55 #define _POSIX_THREAD_SAFE_FUNCTIONS
56
57
58 #include <sys/cdefs.h>
59
60
61 #endif
62