aboutsummaryrefslogtreecommitdiff
path: root/sdk-modifications/include/ds2_types.h
diff options
context:
space:
mode:
authorNebuleon Fumika2013-02-24 18:02:55 -0500
committerNebuleon Fumika2013-02-24 18:02:55 -0500
commit1c0260ecfa0d4b5feeed552baae3ee116cb59574 (patch)
tree4db023969d1aba80bea87e98ad9d8314fc388159 /sdk-modifications/include/ds2_types.h
parent339cdb48281846943e631a36128d53b241d3c176 (diff)
downloadsnes9x2005-1c0260ecfa0d4b5feeed552baae3ee116cb59574.tar.gz
snes9x2005-1c0260ecfa0d4b5feeed552baae3ee116cb59574.tar.bz2
snes9x2005-1c0260ecfa0d4b5feeed552baae3ee116cb59574.zip
Define u8, s8, u16, s16, u32, s32, u64, s64 as typedefs. Ported from a test repository.
Diffstat (limited to 'sdk-modifications/include/ds2_types.h')
-rwxr-xr-xsdk-modifications/include/ds2_types.h40
1 files changed, 16 insertions, 24 deletions
diff --git a/sdk-modifications/include/ds2_types.h b/sdk-modifications/include/ds2_types.h
index 3ec59bf..ae66737 100755
--- a/sdk-modifications/include/ds2_types.h
+++ b/sdk-modifications/include/ds2_types.h
@@ -1,37 +1,29 @@
#ifndef __DS2_TYPES_H__
#define __DS2_TYPES_H__
-#ifndef u8
-#define u8 unsigned char
-#endif
+typedef unsigned char u8;
+typedef char s8;
-#ifndef s8
-#define s8 char
-#endif
+typedef unsigned short u16;
+typedef short s16;
-#ifndef u16
-#define u16 unsigned short
-#endif
+typedef unsigned int u32;
+typedef int s32;
-#ifndef s16
-#define s16 short
-#endif
+typedef unsigned long long u64;
+typedef long long s64;
-#ifndef u32
-#define u32 unsigned int
-#endif
+typedef volatile unsigned char vu8;
+typedef volatile char vs8;
-#ifndef s32
-#define s32 int
-#endif
+typedef volatile unsigned short vu16;
+typedef volatile short vs16;
-#ifndef u64
-#define u64 unsigned long long
-#endif
+typedef volatile unsigned int vu32;
+typedef volatile int vs32;
-#ifndef s64
-#define s64 long long
-#endif
+typedef volatile unsigned long long vu64;
+typedef volatile long long vs64;
#ifndef NULL
#define NULL 0