SDL_mixer 1.0.4 cross-compiling errors

Ok, just upgraded to SDL 1.0.4 and SDL_mixer 1.0.4 from SDL1.0.3 and
mixer 1.0 SDL cross-compiles fine, but I’m getting errors trying to
cross-compile the mixer…

In file included from drv_nos.c:43:
mikmod_internals.h:57: warning: `__STDC__' redefined
*Initialization*:1: warning: this is the location of the previous

definition
In file included from mikmod_build.h:1,
from mikmod_internals.h:40,
from drv_nos.c:43:
mikmod.h:81: redefinition of CHAR' /usr/local/cross-tools/i386-mingw32/include/winnt.h:15:CHAR’
previously declared here

Anyone else having this problem? Or is it just me?–
-= aaron p. matthews
-= rivalgames
-= http://www.rivalgames.com

Sam Lantinga wrote:

Anyone else having this problem? Or is it just me?

Try this patch:

works perfectly now, thanks!!–
-= aaron p. matthews
-= rivalgames
-= http://www.rivalgames.com

In file included from drv_nos.c:43:
mikmod_internals.h:57: warning: `__STDC__' redefined
*Initialization*:1: warning: this is the location of the previous

definition
In file included from mikmod_build.h:1,
from mikmod_internals.h:40,
from drv_nos.c:43:
mikmod.h:81: redefinition of CHAR' /usr/local/cross-tools/i386-mingw32/include/winnt.h:15:CHAR’
previously declared here

Anyone else having this problem? Or is it just me?

Try this patch:

Index: mikmod.h===================================================================
RCS file: /cvs/mixer/mikmod/mikmod.h,v
retrieving revision 1.4
diff -u -r1.4 mikmod.h
— mikmod.h 2000/02/01 21:16:29 1.4
+++ mikmod.h 2000/02/19 01:59:28
@@ -78,7 +78,9 @@
#define INCL_DOSSEMAPHORES
#include <os2.h>
#else
+#ifndef WIN32
typedef char CHAR;
+#endif
#endif

/@DOES_NOT_HAVE_SIGNED@/
Index: mikmod_internals.h

RCS file: /cvs/mixer/mikmod/mikmod_internals.h,v
retrieving revision 1.3
diff -u -r1.3 mikmod_internals.h
— mikmod_internals.h 2000/02/11 04:49:19 1.3
+++ mikmod_internals.h 2000/02/19 01:59:28
@@ -54,7 +54,9 @@
#endif

#ifdef WIN32
+#ifndef STDC
#define STDC
+#endif
#pragma warning(disable:4761)
#endif

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software

“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Sam Lantinga wrote:

Anyone else having this problem? Or is it just me?

Try this patch:

works perfectly now, thanks!!

Great!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec