summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorastrange <astrange@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-06-30 09:27:03 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:11:43 +0200
commita701c81f6dacaab94ab832c171f7230cd1f8e933 (patch)
tree9615addec063c5ac444d1c07398b83d045d701d1 /configure
parentb8ab283f91fcbdee4051be712d2d2ae57e7328c3 (diff)
downloadmpv-a701c81f6dacaab94ab832c171f7230cd1f8e933.tar.bz2
mpv-a701c81f6dacaab94ab832c171f7230cd1f8e933.tar.xz
configure: Fix detection of SDL backend for vo_gl on OS X
SDL overrides main, and provides a prototype for SDL_main which uses argc and argv. Since the prototype didn't match the main() in the test program, it failed to compile, making the test fail when it should have worked. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31589 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index fd185cd22c..3588cb7714 100755
--- a/configure
+++ b/configure
@@ -5039,7 +5039,7 @@ if (test "$_x11" = yes || test "$_sdl" = yes || win32) && test "$_gl" != no ; th
#include <X11/Xlib.h>
#include <GL/glx.h>
#endif
-int main(void) {
+int main(int argc, char *argv[]) {
#ifdef GL_WIN32
HDC dc;
wglCreateContext(dc);