[MPlayer-cvslog] CVS: main/libvo vo_sdl.c,1.123,1.124
Alexander Strasser beastd
syncmail at mplayerhq.hu
Mon Dec 26 04:16:50 CET 2005
CVS change done by Alexander Strasser (beastd)
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv10532/libvo
Modified Files:
vo_sdl.c
Log Message:
- 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
Index: vo_sdl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_sdl.c,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -r1.123 -r1.124
--- vo_sdl.c 2 Nov 2005 21:50:55 -0000 1.123
+++ vo_sdl.c 26 Dec 2005 03:16:47 -0000 1.124
@@ -138,22 +138,6 @@
#include <SDL.h>
//#include <SDL/SDL_syswm.h>
-#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
-
#ifdef SDL_ENABLE_LOCKS
#define SDL_OVR_LOCK(x) if (SDL_LockYUVOverlay (priv->overlay)) { \
More information about the MPlayer-cvslog
mailing list