2020-11-23 09:51:33 +01:00
|
|
|
#ifndef PSYX_COMPAT_H
|
|
|
|
#define PSYX_COMPAT_H
|
|
|
|
|
|
|
|
// Psy-Cross compatibility header
|
|
|
|
|
|
|
|
// Necessary includes
|
|
|
|
#ifndef PSX
|
2020-12-24 17:44:40 +01:00
|
|
|
#include "PSYX_PUBLIC.H"
|
2020-11-23 09:51:33 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// Necessary types
|
2020-12-10 21:47:44 +01:00
|
|
|
// It's size should match P_LEN*4
|
2020-11-23 09:51:33 +01:00
|
|
|
#ifdef PSX
|
2020-12-28 09:51:40 +01:00
|
|
|
typedef int intptr_t;
|
2020-11-23 09:51:33 +01:00
|
|
|
typedef u_long OTTYPE;
|
2020-12-28 09:51:40 +01:00
|
|
|
|
2020-12-28 11:07:24 +01:00
|
|
|
typedef short VERTTYPE;
|
|
|
|
|
2020-12-28 09:51:40 +01:00
|
|
|
#define RECT16 RECT
|
|
|
|
|
2021-01-04 00:19:57 +01:00
|
|
|
#else
|
|
|
|
|
|
|
|
#if defined(_M_X64) || defined(__amd64__)
|
|
|
|
typedef OT_TAG OTTYPE;
|
2020-11-23 09:51:33 +01:00
|
|
|
#else
|
|
|
|
typedef unsigned long long OTTYPE;
|
|
|
|
#endif
|
|
|
|
|
2021-01-04 00:19:57 +01:00
|
|
|
#endif
|
|
|
|
|
2020-11-23 09:51:33 +01:00
|
|
|
#endif PSYX_COMPAT_H
|