-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtypes.h
More file actions
39 lines (32 loc) · 723 Bytes
/
types.h
File metadata and controls
39 lines (32 loc) · 723 Bytes
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
#ifndef MYTYPES_H
#define MYTYPES_H
#ifdef DEBUG
#define debug(s) s
#else
#define debug(s)
#endif
#ifdef __BORLANDC__
#define int32_t long
#define uint32_t unsigned long
#define CRTCa 0x3d8
#define CRTCb 0x3d4
#define CRTCma 0x3b8
#define CRTCmb 0x3b4
#define CRTCmd 0x3ba
#include <dos.h>
#include <conio.h>
#else
#define far
#define huge
#endif
#ifdef __GNUC__
#include <stdint.h>
#define USESDL
#endif
#define bswap32(x) \
((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \
(((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24))
#define bswap16(x) \
((((x) & 0xff00) >> 8) | (((x) & 0x00ff) << 8))
typedef unsigned char far * ptr_t;
#endif