summaryrefslogtreecommitdiff
path: root/Source/Global_Inc.h
blob: 0c8f44606be3c9786aa7639056bdd0edffe09203 (plain) (blame)
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
#ifndef __GLOBAL_INC__H__
#define __GLOBAL_INC__H__

/* *************************************
 * 	Includes
 * *************************************/

#include <psx.h>
#include <stdio.h>
#include <psxsio.h>
#include <stdlib.h>
#include <string.h>
#include <types.h>
#include <fixmath.h>
#include <runexe.h>

/* *************************************
 * 	Defines
 * *************************************/

#define REFRESH_FREQUENCY 50 //50 Hz PAL / 60 Hz NTSC
#define DEBUG_PRINT_VAR(var) dprintf(#var " = %d\n", var);

#ifndef bool
	typedef enum
	{
		false = 0,
		true = 1
	}bool;
#endif

#if (PSXSDK_VERSION != 0x0599)
#error "Wrong PSXSDK version! Please use version 0.5.99."
#endif

/* Test for GCC > 5.2.0 */
#if ( (__GNUC__ != 5) || (__GNUC_MINOR__ != 2) || (__GNUC_PATCHLEVEL__ != 0) )
#error "Wrong GCC version! Please use version 5.2.0."
#endif

#endif // __GLOBAL_INC__H__