diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-05-14 04:16:35 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-05-14 04:16:35 +0000 |
commit | 64bc6412188b141c010ac3b8e813b837dd991e80 (patch) | |
tree | ffa12b79ea4b13191754f54b872eb1a4f9e3a04b /include/features.h |
Initial revision
Diffstat (limited to 'include/features.h')
-rw-r--r-- | include/features.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/include/features.h b/include/features.h new file mode 100644 index 000000000..60ecc0a4c --- /dev/null +++ b/include/features.h @@ -0,0 +1,39 @@ + +#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 + +#define _POSIX_THREAD_SAFE_FUNCTIONS + +#include <sys/cdefs.h> + + +#endif + |