summaryrefslogtreecommitdiff
path: root/include/Global_Inc.h
diff options
context:
space:
mode:
authorXavi Del Campo <xavi.dcr@tutanota.com>2020-03-03 18:10:15 +0100
committerXavi Del Campo <xavi.dcr@tutanota.com>2020-03-03 18:10:27 +0100
commitb28059d49afce8524361fa7597adcc9e108f4eab (patch)
tree5041d37aa9571ac738ced4b9f16388550d0e8f78 /include/Global_Inc.h
parentbf3bb8cdc590a18195e25c38f4f4db11e8bcd1c4 (diff)
downloadopensend-b28059d49afce8524361fa7597adcc9e108f4eab.tar.gz
Renamed folders to lowercase
Diffstat (limited to 'include/Global_Inc.h')
-rw-r--r--include/Global_Inc.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/include/Global_Inc.h b/include/Global_Inc.h
new file mode 100644
index 0000000..0c8f446
--- /dev/null
+++ b/include/Global_Inc.h
@@ -0,0 +1,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__