-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathFEATURES.H
73 lines (53 loc) · 1 KB
/
FEATURES.H
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef __FEATURES_H
#define __FEATURES_H
#ifndef __STDC__
#ifdef HI_TECH_C
#define __STDC__ 1
#endif
#endif
/* Define prototypes shell for non-ANSI compilers */
#ifdef __TURBOC__
#define VOID void
#define __P(a) a
#define __const const
void __cli__();
void __sti__();
void __int__(int);
void __emit__();
#ifdef PC_UTILS_TARGET
#define di()
#define ei()
#else
/* #error sdsdsd */
#define di() __cli__()
#define ei() __sti__()
#endif
#define geninterrupt(i) __int__(i)
#define FP_OFF(fp) ((unsigned)(fp))
#define FP_SEG(fp) ((unsigned)((unsigned long)(fp) >> 16))
#else
#ifdef __STDC__
#ifndef VOID
#define VOID void
#endif
#ifndef __P
#define __P(a) a
#endif
#define __const const
#else /* K&R */
#ifndef VOID
#define VOID
#endif
#ifndef __P
#define __P(a) ()
#endif
#define __const
#define volatile
#define void char
#endif /* __STDC__ */
#endif /* __TURBOC__ */
#ifdef ORION_HOSTED
#define volatile
#endif
#include "cdefs.h"
#endif