changeset 584:2e5e01679f32

Minor changes to mpg123.c to compile with Visual Studio and modern mpg123.c instead of bundled version.
author Eric Wing <ewing@anscamobile.com>
date Wed, 27 Apr 2011 19:13:29 -0700
parents fbb3f1abdd9e
children eba7b2e13740
files decoders/mpg123.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/decoders/mpg123.c	Tue Nov 09 12:11:56 2010 -0500
+++ b/decoders/mpg123.c	Wed Apr 27 19:13:29 2011 -0700
@@ -42,14 +42,18 @@
 #include <stdlib.h>
 #include <string.h>
 
-#define MPG123_NO_CONFIGURE 1
-#include "libmpg123/mpg123.h"
+#include "mpg123.h"
 
 #include "SDL_sound.h"
 
 #define __SDL_SOUND_INTERNAL__
 #include "SDL_sound_internal.h"
 
+#ifdef _MSC_VER
+#define snprintf _snprintf
+#endif
+
+
 static int MPG123_init(void);
 static void MPG123_quit(void);
 static int MPG123_open(Sound_Sample *sample, const char *ext);