mirror of https://github.com/mpv-player/mpv
Pass argc and argv parameters to main() function in SDL test.
SDL renames the main function via a macro and later passes it parameters. This fixes the SDL check on at least Mac OS X, continues to work fine on Linux. patch by vmrsss vmrsss gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29221 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
329513035e
commit
d6b2a50fba
|
@ -5083,7 +5083,7 @@ fi
|
||||||
if test "$_sdl" = auto || test "$_sdl" = yes ; then
|
if test "$_sdl" = auto || test "$_sdl" = yes ; then
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
#include <SDL.h>
|
#include <SDL.h>
|
||||||
int main(void) {
|
int main(int argc, char *argv[]) {
|
||||||
SDL_Init(SDL_INIT_VIDEO|SDL_INIT_NOPARACHUTE);
|
SDL_Init(SDL_INIT_VIDEO|SDL_INIT_NOPARACHUTE);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue