More portability using C99 types.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@81 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
parent
aee922e13c
commit
8eaa904bc2
28
src/System.h
28
src/System.h
|
@ -20,32 +20,28 @@
|
||||||
#ifndef VBA_SYSTEM_H
|
#ifndef VBA_SYSTEM_H
|
||||||
#define VBA_SYSTEM_H
|
#define VBA_SYSTEM_H
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "unzip.h"
|
#include "unzip.h"
|
||||||
|
|
||||||
#ifndef NULL
|
#ifndef NULL
|
||||||
#define NULL 0
|
#define NULL 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
typedef uint8_t u8;
|
||||||
|
typedef uint16_t u16;
|
||||||
|
typedef uint32_t u32;
|
||||||
|
typedef uint64_t u64;
|
||||||
|
|
||||||
|
typedef int8_t s8;
|
||||||
|
typedef int16_t s16;
|
||||||
|
typedef int32_t s32;
|
||||||
|
typedef int64_t s64;
|
||||||
|
|
||||||
typedef unsigned char u8;
|
typedef unsigned char u8;
|
||||||
typedef unsigned short u16;
|
typedef unsigned short u16;
|
||||||
typedef unsigned int u32;
|
typedef unsigned int u32;
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
typedef unsigned __int64 u64;
|
|
||||||
#else
|
|
||||||
typedef unsigned long long u64;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef signed char s8;
|
|
||||||
typedef signed short s16;
|
|
||||||
typedef signed int s32;
|
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
typedef signed __int64 s64;
|
|
||||||
#else
|
|
||||||
typedef signed long long s64;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct EmulatedSystem {
|
struct EmulatedSystem {
|
||||||
// main emulation function
|
// main emulation function
|
||||||
void (*emuMain)(int);
|
void (*emuMain)(int);
|
||||||
|
|
Loading…
Reference in New Issue