aboutsummaryrefslogtreecommitdiff
path: root/scummsys.h
diff options
context:
space:
mode:
authorTravis Howell2002-02-16 00:28:37 +0000
committerTravis Howell2002-02-16 00:28:37 +0000
commit2cae51c252875eb4a0f0d6d26f01f4a1cbc49ba0 (patch)
tree58b4ea0c835f5146c005ee677db0d2552548b24c /scummsys.h
parent0b02fccef04c1c054fdf0dfefa399f3992b19297 (diff)
downloadscummvm-rg350-2cae51c252875eb4a0f0d6d26f01f4a1cbc49ba0.tar.gz
scummvm-rg350-2cae51c252875eb4a0f0d6d26f01f4a1cbc49ba0.tar.bz2
scummvm-rg350-2cae51c252875eb4a0f0d6d26f01f4a1cbc49ba0.zip
Added mingw support and makefile.
svn-id: r3597
Diffstat (limited to 'scummsys.h')
-rw-r--r--scummsys.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/scummsys.h b/scummsys.h
index cfcb163edf..c845607435 100644
--- a/scummsys.h
+++ b/scummsys.h
@@ -74,6 +74,29 @@ typedef signed long int32;
#define START_PACK_STRUCTS pack (push,1)
#define END_PACK_STRUCTS pack(pop)
+#elif defined(__MINGW32__)
+
+#define scumm_stricmp stricmp
+#define CHECK_HEAP
+#define SCUMM_LITTLE_ENDIAN
+
+#define FORCEINLINE inline
+#define NORETURN __attribute__((__noreturn__))
+#define GCC_PACK __attribute__((packed))
+#define _HEAPOK 0
+
+typedef unsigned char byte;
+typedef unsigned char uint8;
+typedef unsigned short uint16;
+typedef unsigned long uint32;
+typedef unsigned int uint;
+typedef signed char int8;
+typedef signed short int16;
+typedef signed long int32;
+
+#define START_PACK_STRUCTS pack (push,1)
+#define END_PACK_STRUCTS pack(pop)
+
#elif (defined(UNIX) || defined(__APPLE__))
#define scumm_stricmp strcasecmp