1 2 #ifndef __FEATURES_H 3 #define __FEATURES_H 4 5 #ifdef __STDC__ 6 7 #define __P(x) x 8 #define __const const 9 10 /* Not really ansi */ 11 #ifdef __BCC__ 12 #define const 13 #define volatile 14 #endif 15 16 #else /* K&R */ 17 18 #define __P(x) () 19 #define __const 20 #define const 21 #define volatile 22 23 #endif 24 25 /* Pick an OS sysinclude directory */ 26 /* Use with #include __SYSINC__(errno.h) */ 27 28 #ifdef __ELKS__ 29 #define __SYSINC__(_h_file_) <linuxmt/_h_file_> 30 #endif 31 32 #ifdef __linux__ 33 #undef linux /* Eyuk! */ 34 #define __SYSINC__(_h_file_) <linux/_h_file_> 35 #endif 36 37 #ifdef __MSDOS__ 38 #define __SYSINC__(_h_file_) <msdos/_h_file_> 39 #endif 40 41 #ifndef __SYSINC__ 42 #define __SYSINC__(_h_file_) <generic/_h_file_> 43 #endif 44 45 /* No C++ */ 46 #define __BEGIN_DECLS 47 #define __END_DECLS 48 49 /* GNUish things */ 50 #define __CONSTVALUE 51 #define __CONSTVALUE2 52 53 #include <sys/cdefs.h> 54 55 #endif 56