Mercurial > mplayer.hg
diff libao2/ao_sdl.c @ 12019:6ede5366bc47
fix compilation with sdl on mingw patch by Nehal <nehalmistry at gmx.net>
author | faust3 |
---|---|
date | Sat, 13 Mar 2004 16:25:08 +0000 |
parents | 9b6e480622c4 |
children | 210e474436d3 |
line wrap: on
line diff
--- a/libao2/ao_sdl.c Sat Mar 13 16:10:02 2004 +0000 +++ b/libao2/ao_sdl.c Sat Mar 13 16:25:08 2004 +0000 @@ -34,7 +34,11 @@ 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 @@ // 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;