-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathBuzz_inc.h
90 lines (68 loc) · 2.12 KB
/
Buzz_inc.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/*
Copyright (C) 2005 Michael K. McCarty & Fritz Bronner
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <race.h> // autoconf header
#include <int_types.h>
#include <pace.h>
//#include <valgrind.h>
#ifndef ui8
typedef uint8_t ui8;
#endif
#ifndef i8
typedef int8_t i8;
#endif
#ifndef ui16
typedef uint16_t ui16;
#endif
#ifndef i16
typedef int16_t i16;
#endif
#ifndef ui32
typedef uint32_t ui32;
#endif
#ifndef i32
typedef int32_t i32;
#endif
#ifdef _WIN32
#include <winsock2.h>
#endif
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <stdarg.h>
#include <fcntl.h>
#include <time.h>
#include <math.h>
#include <sys/stat.h>
#include "fortify_workaround.h"
// EMS Includes
// #include <sv_lib.h>
/* FIXME: non-portable. Used to get struct layout like in DOS days */
#pragma pack(1)
#include <data.h> // main data structures
/* get the alignment back to defaults */
/* #pragma pack() */
/* BIG FIXME: Unfortunately structures defined in some functions rely on tight
* packing. This setting mainly breaks things in gamedata.h, so we make sure
* we notice bad order of #includes. That's another good reason to make all
* code use the gamedata.c interfaces. */
#define ALTERED_STRUCTURE_PACKING
#include <proto.h> // prototypes and general defines
#include <music.h> // defines for music names
#include <endianness.h>
#include <macros.h> // Collected Macros
#include <fs.h>
#define random brandom