]> Git Repo - uclibc-ng.git/blob - include/features.h
Remove __restrict when not supported
[uclibc-ng.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 /* __restrict is known in EGCS 1.2 and above. */
13 #if !defined __GNUC__ || __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ <
14         92)
15 # define __restrict     /* Ignore */
16 #endif
17
18
19 #ifdef __STDC__
20
21 #define __P(x) x
22 #define __const const
23
24 /* Almost ansi */
25 #if __STDC__ != 1
26 #define const
27 #define volatile
28 #endif
29
30 #else /* K&R */
31
32 #define __P(x) ()
33 #define __const
34 #define const
35 #define volatile
36
37 #endif
38
39 /* No C++ */
40 #define __BEGIN_DECLS
41 #define __END_DECLS
42
43 /* GNUish things */
44 #define __CONSTVALUE
45 #define __CONSTVALUE2
46
47 #define __USE_BSD
48 #define __USE_MISC
49 #define __USE_POSIX
50 #define __USE_POSIX2
51 #define _POSIX_THREAD_SAFE_FUNCTIONS
52
53 #include <sys/cdefs.h>
54
55
56 #endif
57
This page took 0.026064 seconds and 4 git commands to generate.