summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authoral <al@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-12-26 03:16:48 +0000
committeral <al@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-12-26 03:16:48 +0000
commitfa2d1c9a69ced48a070320857df2298b795ae0c4 (patch)
tree611d3d52b025fed8ac05a6c9c311931637e594d0 /libvo
parent74f1ad8a0ab3bf05805a2f83ca271c29a33c45cc (diff)
downloadmpv-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 'libvo')
-rw-r--r--libvo/vo_sdl.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/libvo/vo_sdl.c b/libvo/vo_sdl.c
index 2d64e0c06c..078951d474 100644
--- a/libvo/vo_sdl.c
+++ b/libvo/vo_sdl.c
@@ -138,22 +138,6 @@ LIBVO_EXTERN(sdl)
#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)) { \