changeset 299:7b1df7526915

Patches for Visual C compatibility.
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 25 Mar 2002 20:52:06 +0000
parents c92c07e07636
children 338cd6c101e3
files decoders/mpglib/Makefile.am decoders/mpglib/layer3.c decoders/mpglib/mpg123_sdlsound.h
diffstat 3 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/decoders/mpglib/Makefile.am	Mon Mar 25 20:51:32 2002 +0000
+++ b/decoders/mpglib/Makefile.am	Mon Mar 25 20:52:06 2002 +0000
@@ -5,7 +5,7 @@
 
 if USE_MPGLIB
 libmpglib_la_SOURCES =	\
-	common.c            \
+	mpglib_common.c     \
 	huffman.h           \
 	layer1.c            \
 	tabinit.c           \
--- a/decoders/mpglib/layer3.c	Mon Mar 25 20:51:32 2002 +0000
+++ b/decoders/mpglib/layer3.c	Mon Mar 25 20:52:06 2002 +0000
@@ -323,7 +323,7 @@
        gr_info->part2_3_length = getbits(12);
        gr_info->big_values = getbits_fast(9);
        if(gr_info->big_values > 288) {
-          SNDDBG("MPGLIB: big_values too large!\n");
+          SNDDBG(("MPGLIB: big_values too large!\n"));
           gr_info->big_values = 288;
        }
        gr_info->pow2gain = gainpow2+256 - getbits_fast(8) + powdiff;
@@ -397,7 +397,7 @@
        gr_info->part2_3_length = getbits(12);
        gr_info->big_values = getbits_fast(9);
        if(gr_info->big_values > 288) {
-         SNDDBG("MPGLIB: big_values too large!\n");
+         SNDDBG(("MPGLIB: big_values too large!\n"));
          gr_info->big_values = 288;
        }
        gr_info->pow2gain = gainpow2+256 - getbits_fast(8) + powdiff;
--- a/decoders/mpglib/mpg123_sdlsound.h	Mon Mar 25 20:51:32 2002 +0000
+++ b/decoders/mpglib/mpg123_sdlsound.h	Mon Mar 25 20:52:06 2002 +0000
@@ -32,6 +32,8 @@
 
 #ifdef __GNUC__
 #define INLINE inline
+#elif (defined _MSC_VER)
+#define INLINE __inline__
 #else
 #define INLINE
 #endif