From b3372bc0d0b5ea0bfa4c77c41850e483e97beb16 Mon Sep 17 00:00:00 2001 From: faust3 Date: Sat, 13 Mar 2004 16:25:08 +0000 Subject: fix compilation with sdl on mingw patch by Nehal git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12020 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libao2/ao_sdl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libao2') diff --git a/libao2/ao_sdl.c b/libao2/ao_sdl.c index a461a7488c..7c9da50680 100644 --- a/libao2/ao_sdl.c +++ b/libao2/ao_sdl.c @@ -34,7 +34,11 @@ static ao_info_t info = LIBAO_EXTERN(sdl) // Samplesize used by the SDLlib AudioSpec struct +#ifdef WIN32 +#define SAMPLESIZE 2048 +#else #define SAMPLESIZE 1024 +#endif // General purpose Ring-buffering routines @@ -95,8 +99,8 @@ static int read_buffer(unsigned char* data,int len){ // end ring buffer stuff -#if defined(HPUX) || defined(sgi) || (defined(sun) && defined(__svr4__)) -/* setenv is missing on solaris, IRIX and HPUX */ +#if defined(WIN32) || defined(HPUX) || defined(sgi) || (defined(sun) && defined(__svr4__)) +/* setenv is missing on win32, solaris, IRIX and HPUX */ static void setenv(const char *name, const char *val, int _xx) { int len = strlen(name) + strlen(val) + 2; -- cgit v1.2.3