diff options
Diffstat (limited to 'libc/include/features.h')
-rw-r--r-- | libc/include/features.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/libc/include/features.h b/libc/include/features.h new file mode 100644 index 0000000..11eb610 --- /dev/null +++ b/libc/include/features.h @@ -0,0 +1,36 @@ + +#ifndef __FEATURES_H +#define __FEATURES_H + +#ifdef __STDC__ + +#define __P(x) x +#define __const const + +/* Almost ansi */ +#if __STDC__ != 1 +#define const +#define volatile +#endif + +#else /* K&R */ + +#define __P(x) () +#define __const +#define const +#define volatile + +#endif + +/* No C++ */ +#define __BEGIN_DECLS +#define __END_DECLS + +/* GNUish things */ +#define __CONSTVALUE +#define __CONSTVALUE2 + +#include <sys/cdefs.h> + +#endif + |