From fa2d1c9a69ced48a070320857df2298b795ae0c4 Mon Sep 17 00:00:00 2001 From: al Date: Mon, 26 Dec 2005 03:16:48 +0000 Subject: - 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 --- libao2/ao_sdl.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'libao2') 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){ -- cgit v1.2.3