summaryrefslogtreecommitdiff
path: root/plugins/gme/game-music-emu-0.6pre/gme/nestypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gme/game-music-emu-0.6pre/gme/nestypes.h')
-rw-r--r--plugins/gme/game-music-emu-0.6pre/gme/nestypes.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/plugins/gme/game-music-emu-0.6pre/gme/nestypes.h b/plugins/gme/game-music-emu-0.6pre/gme/nestypes.h
new file mode 100644
index 00000000..1fd3582b
--- /dev/null
+++ b/plugins/gme/game-music-emu-0.6pre/gme/nestypes.h
@@ -0,0 +1,39 @@
+#ifndef NESTYPES_H__
+#define NESTYPES_H__
+
+#if defined(_MSC_VER)
+#define NEVER_REACH __assume(0);
+#define inline __inline
+#elif defined(__BORLANDC__)
+#define __fastcall __msfastcall
+#elif defined(__GNUC__)
+#define __inline __inline__
+#define __fastcall
+#else
+#define __inline
+#define __fastcall
+#endif
+#ifndef NEVER_REACH
+#define NEVER_REACH
+#endif
+
+typedef int Int;
+typedef unsigned int Uint;
+typedef signed int Int32;
+typedef unsigned int Uint32;
+typedef signed short Int16;
+typedef unsigned short Uint16;
+typedef signed char Int8;
+typedef unsigned char Uint8;
+typedef char Char;
+
+#include <stdlib.h>
+
+#define XSLEEP(n) ((void)0)
+#define XMALLOC(s) malloc(s)
+#define XREALLOC(p,s) realloc(p,s)
+#define XFREE(p) free(p)
+#define XMEMCPY(d,s,n) memcpy(d,s,n)
+#define XMEMSET(d,c,n) memset(d,c,n)
+
+#endif /* NESTYPES_H__ */