diff options
author | al <al@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-12-26 03:16:48 +0000 |
---|---|---|
committer | al <al@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-12-26 03:16:48 +0000 |
commit | fa2d1c9a69ced48a070320857df2298b795ae0c4 (patch) | |
tree | 611d3d52b025fed8ac05a6c9c311931637e594d0 /libao2 | |
parent | 74f1ad8a0ab3bf05805a2f83ca271c29a33c45cc (diff) | |
download | mpv-fa2d1c9a69ced48a070320857df2298b795ae0c4.tar.bz2 mpv-fa2d1c9a69ced48a070320857df2298b795ae0c4.tar.xz |
- move our setenv() fallback implementation to osdep
- assert that the override param is nonzero (zero is not implemented)
- correct return value type to int
based on a patch by Diego
fixes bugzilla bug #342
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17246 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2')
-rw-r--r-- | libao2/ao_sdl.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/libao2/ao_sdl.c b/libao2/ao_sdl.c index d2e506cf55..7c079d2e06 100644 --- a/libao2/ao_sdl.c +++ b/libao2/ao_sdl.c @@ -122,22 +122,6 @@ static int read_buffer(unsigned char* data,int len){ // end ring buffer stuff -#if defined(__MINGW32__) || 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; - char *env = malloc(len); - - if (env != NULL) { - strcpy(env, name); - strcat(env, "="); - strcat(env, val); - putenv(env); - } -} -#endif - // to set/get/query special features/parameters static int control(int cmd,void *arg){ |