Commit a9a4d2be authored by Vladimir Serbinenko's avatar Vladimir Serbinenko
Browse files

Fix RSDL_wrapper types to reuse libretro way

parent c423f296
......@@ -22,14 +22,27 @@ extern unsigned minivmac_devices[ 2 ];
//TYPES
#define UINT16 uint16_t
#define UINT32 uint32_t
#define uint32 uint32_t
#define uint8 uint8_t
#define Uint8 uint8_t
#define Uint16 uint16_t
#define Uint32 uint32_t
typedef uint8_t Uint8;
typedef uint16_t Uint16;
typedef uint32_t Uint32;
typedef uint64_t Uint64;
typedef int8_t Sint8;
typedef int16_t Sint16;
typedef int32_t Sint32;
typedef int64_t Sint64;
typedef uint8_t uint8;
typedef uint16_t uint16;
typedef uint32_t uint32;
typedef int8_t int8;
typedef int16_t int16;
typedef int32_t int32;
typedef uint8_t UINT8;
typedef uint16_t UINT16;
typedef uint32_t UINT32;
#define WINDOW_WIDTH 640
#define WINDOW_HEIGHT 480
......
......@@ -14,33 +14,6 @@
/* The number of elements in a table */
#define RSDL_TABLESIZE(table) (sizeof(table)/sizeof(table[0]))
typedef unsigned char Uint8;
typedef signed char Sint8;
typedef unsigned short Uint16;
typedef signed short Sint16;
typedef signed int Sint32;
typedef signed char int8;
typedef signed short int16;
typedef signed int int32;
typedef unsigned short uint16;
typedef unsigned int uint32;
/* Figure out how to support 64-bit datatypes */
#if !defined(__STRICT_ANSI__)
#if defined(__GNUC__) || defined(__MWERKS__) || defined(__SUNPRO_C)
#define RSDL_HAS_64BIT_TYPE long
#elif defined(_MSC_VER) /* VC++ */
#define RSDL_HAS_64BIT_TYPE __int64
#endif
#endif /* !__STRICT_ANSI__ */
#define Uint64 unsigned long long
#define Sint64 signed long long
#undef RSDL_HAS_64BIT_TYPE
/* General keyboard/mouse state definitions */
enum { RSDL_PRESSED = 0x01, RSDL_RELEASED = 0x00 };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment