summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-01-26 22:09:25 +0000
committerDarkvater <Darkvater@openttd.org>2006-01-26 22:09:25 +0000
commitc9d8fb8f07e99b64d0e4e0cc12cd118a61073275 (patch)
tree368258788bb985109bac072e8833a7c645857f56
parentd956c5d5da5107c562ead86e85c8813465c72191 (diff)
downloadopenttd-c9d8fb8f07e99b64d0e4e0cc12cd118a61073275.tar.xz
(svn r3448) - Fix: wrap up some MinGW warnings
-rw-r--r--music/dmusic.cpp2
-rw-r--r--stdafx.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/music/dmusic.cpp b/music/dmusic.cpp
index b93acde19..3af6dfc81 100644
--- a/music/dmusic.cpp
+++ b/music/dmusic.cpp
@@ -118,7 +118,7 @@ static void DMusicMidiStop(void)
if (performance != NULL) performance->Stop(NULL, NULL, 0, 0);
if (segment != NULL) {
- segment->SetParam(GUID_Unload, -1, 0, 0, performance);
+ segment->SetParam(GUID_Unload, 0xFFFFFFFF, 0, 0, performance);
segment->Release();
segment = NULL;
}
diff --git a/stdafx.h b/stdafx.h
index 0589002a6..8f47af4ec 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -174,7 +174,7 @@ typedef unsigned char byte;
#endif
// This is already defined in unix
-#if !defined(UNIX) && !defined(__CYGWIN__) && !defined(__BEOS__)
+#if !defined(UNIX) && !defined(__CYGWIN__) && !defined(__BEOS__) && !defined(__MINGW32__)
typedef unsigned int uint;
#endif
// Not defined in QNX Neutrino (6.x)