ScummVM API documentation
portdefs.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef _PORTDEFS_H_
23 #define _PORTDEFS_H_
24 
30 #define uint8 __nds_uint8
31 #define uint16 __nds_uint16
32 #define uint32 __nds_uint32
33 #define uint64 __nds_uint64
34 #define int8 __nds_int8
35 #define int16 __nds_int16
36 #define int32 __nds_int32
37 #define int64 __nds_int64
38 
39 #include "nds/ndstypes.h"
40 
41 #undef uint8
42 #undef uint16
43 #undef uint32
44 #undef uint64
45 #undef int8
46 #undef int16
47 #undef int32
48 #undef int64
49 
50 // Include required headers
51 #include <stdio.h>
52 #include <stdlib.h>
53 #include <string.h>
54 #include <stdarg.h>
55 #include <stddef.h>
56 #include <assert.h>
57 #include <ctype.h>
58 #include <inttypes.h>
59 #include <limits.h>
60 #include <math.h>
61 #include <new>
62 #include <limits>
63 
64 #include <nds/arm9/sassert.h>
65 #undef assert
66 #define assert(e) sassert(e, " ")
67 
68 #ifndef DISABLE_COMMAND_LINE
69 #define DISABLE_COMMAND_LINE
70 #endif
71 
72 #ifndef STREAM_AUDIO_FROM_DISK
73 #define STREAM_AUDIO_FROM_DISK
74 #endif
75 
76 #endif