[xiph-cvs] cvs commit: speex/src speexdec.c wave_out.h

Jean-Marc Valin jm at xiph.org
Tue Feb 17 23:14:41 PST 2004



jm          04/02/18 02:14:41

  Modified:    .        configure.in
               src      speexdec.c wave_out.h
  Log:
  Patch for compiling with mingw32 sent by j at thing.net

Revision  Changes    Path
1.64      +2 -0      speex/configure.in

Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/speex/configure.in,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- configure.in	18 Feb 2004 06:59:40 -0000	1.63
+++ configure.in	18 Feb 2004 07:14:39 -0000	1.64
@@ -62,6 +62,8 @@
 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])

<p><p>1.89      +4 -0      speex/src/speexdec.c

Index: speexdec.c
===================================================================
RCS file: /usr/local/cvsroot/speex/src/speexdec.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -r1.88 -r1.89
--- speexdec.c	18 Feb 2004 06:59:40 -0000	1.88
+++ speexdec.c	18 Feb 2004 07:14:41 -0000	1.89
@@ -53,6 +53,10 @@
 #endif
 #include <math.h>
 
+#ifdef __MINGW32__
+#include "wave_out.c"
+#endif
+
 #ifdef HAVE_SYS_SOUNDCARD_H
 #include <sys/soundcard.h>
 #include <sys/types.h>

<p><p>1.3       +3 -0      speex/src/wave_out.h

Index: wave_out.h
===================================================================
RCS file: /usr/local/cvsroot/speex/src/wave_out.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- wave_out.h	11 Oct 2002 03:44:08 -0000	1.2
+++ wave_out.h	18 Feb 2004 07:14:41 -0000	1.3
@@ -33,6 +33,9 @@
 
 #include <stdio.h>
 #include <windows.h>
+#ifdef __MINGW32__
+#include <mmsystem.h>
+#endif
 
 #define VERSION_STRING "\n 0.7.0\n"
 

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list