Patch for compiling with mingw32 sent by j@thing.net
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Wed, 18 Feb 2004 07:14:41 +0000 (07:14 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Wed, 18 Feb 2004 07:14:41 +0000 (07:14 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@5837 0101bb08-14d6-0310-b084-bc0e0c8e3800

configure.in
src/speexdec.c
src/wave_out.h

index 80f45de..7cd7889 100644 (file)
@@ -62,6 +62,8 @@ AC_CHECK_FUNCS([getopt_long],,
 AC_LIBOBJ(getopt)
 AC_LIBOBJ(getopt1)])])
 
+AC_CHECK_LIB(winmm, main)
+
 AC_DEFINE_UNQUOTED(VERSION, "${VERSION}")
 
 AC_ARG_ENABLE(valgrind, [  --enable-valgrind       enable valgrind extra checks], [if test "$enableval" = yes; then AC_DEFINE(ENABLE_VALGRIND) fi])
index 657a4fa..aaaada3 100644 (file)
 #endif
 #include <math.h>
 
+#ifdef __MINGW32__
+#include "wave_out.c"
+#endif
+
 #ifdef HAVE_SYS_SOUNDCARD_H
 #include <sys/soundcard.h>
 #include <sys/types.h>
index bc97ff6..82eb88b 100644 (file)
@@ -33,6 +33,9 @@
 \r
 #include <stdio.h>\r
 #include <windows.h>\r
+#ifdef __MINGW32__\r
+#include <mmsystem.h>\r
+#endif\r
 \r
 #define VERSION_STRING "\n 0.7.0\n"\r
 \r