[MPlayer-dev-eng] [patch] Fixes for Mac OS X

Felix Buenemann atmosfear at users.sourceforge.net
Mon Aug 5 14:16:56 CEST 2002


On Saturday 03 August 2002 00:20, Donnie Smith wrote:
> --- mplayer.c.orig      Fri Aug  2 17:34:46 2002
> +++ mplayer.c   Fri Aug  2 18:15:51 2002
> @@ -482,7 +482,20 @@
>  #endif
>  }
>  
> +/*
> + * In Mac OS X the SDL-lib is built upon Cocoa. The easiest way to
> + * make it all work is to use the builtin SDL-bootstrap code, which
> + * will be done automatically by replacing our main() if we include SDL.h.
> + */
> +#if defined(SYS_DARWIN) && defined(HAVE_SDL)
> +#include <SDL.h>
> +extern char **environ;
> +int main(int argc,char* argv[]){
> +char **envp = environ;
> +#else
>  int main(int argc,char* argv[], char *envp[]){
> +#endif
> +

IMHO it's better to simply remove envp from the main params and the 
configparser, because it doesn't seem to be used at all.

-- 
Best Regards,
        Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________



More information about the MPlayer-dev-eng mailing list