summaryrefslogtreecommitdiff
path: root/libc/include/features.h
blob: cc002f6a6c7a19af294e98a48c296e27bcde7b77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55

#ifndef __FEATURES_H
#define __FEATURES_H

#ifdef __STDC__

#define __P(x) x
#define __const const

/* Not really ansi */
#ifdef __BCC__
#define const
#define volatile
#endif

#else /* K&R */

#define __P(x) ()
#define __const
#define const
#define volatile

#endif

/* Pick an OS sysinclude directory */
/* Use with #include __SYSINC__(errno.h) */

#ifdef __ELKS__
#define __SYSINC__(_h_file_) <linuxmt/_h_file_>
#endif

#ifdef __linux__
#undef linux	/* Eyuk! */
#define __SYSINC__(_h_file_) <linux/_h_file_>
#endif

#ifdef __MSDOS__
#define __SYSINC__(_h_file_) <msdos/_h_file_>
#endif

#ifndef __SYSINC__
#define __SYSINC__(_h_file_) <generic/_h_file_>
#endif

/* No C++ */
#define __BEGIN_DECLS
#define __END_DECLS

/* GNUish things */
#define __CONSTVALUE
#define __CONSTVALUE2

#include <sys/cdefs.h>

#endif