]> git.sesse.net Git - ffmpeg/commit
configure: don't use SDL.h in check_func_headers when checking for SDL2
authorJames Almer <jamrial@gmail.com>
Sun, 7 Jan 2018 20:58:33 +0000 (17:58 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 10 Jan 2018 14:23:45 +0000 (11:23 -0300)
commit32f85056b3eae97ddd149d9312b48449f22cff51
tree0290807f715e902305b9c03cfe07857ab8ccc7ed
parentd38a223943d12c603c87ce806023ab4f4c0769c9
configure: don't use SDL.h in check_func_headers when checking for SDL2

check_func_headers() defines a main() function, which clashes with a
redefinition done by said SDL header. Check for SDL_PollEvent using
SDL_events.h only instead, where the redefinition doesn't happen.

Fixes a regression since d03c39b46b21c893d6549a532289b7fb9935b3fc.

Tested-by: RiCON
Signed-off-by: James Almer <jamrial@gmail.com>
configure