# HG changeset patch # User Eric Wing # Date 1303956809 25200 # Node ID 2e5e01679f320b219ba5fa2994c1c02392dc88ca # Parent fbb3f1abdd9e77985210719bcfeedfad5e96a4e6 Minor changes to mpg123.c to compile with Visual Studio and modern mpg123.c instead of bundled version. diff -r fbb3f1abdd9e -r 2e5e01679f32 decoders/mpg123.c --- 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 #include -#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);