Skip to content

Commit

Permalink
Fixed X11 XInput2 multitouch test to work in configure script.
Browse files Browse the repository at this point in the history
configure wraps this C code in a main() function, so you can't declare a
function body in there. Besides, I'm not sure why we declared a function
that's part of the multitouch API anyhow.

Now we just reference a type that only exists if the headers have multitouch
support and call it a day.
  • Loading branch information
icculus committed Mar 2, 2014
1 parent 1005c93 commit fc0daeb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions configure
Expand Up @@ -20173,11 +20173,6 @@ main ()

int event_type = XI_TouchBegin;
XITouchClassInfo *t;
Status
XIAllowTouchEvents(Display *a,int b,unsigned int c,Window d,int f)
{
return (Status)0;
}

;
return 0;
Expand Down
5 changes: 0 additions & 5 deletions configure.in
Expand Up @@ -1555,11 +1555,6 @@ AC_HELP_STRING([--enable-video-x11-xinput], [enable X11 XInput extension for man
],[
int event_type = XI_TouchBegin;
XITouchClassInfo *t;
Status
XIAllowTouchEvents(Display *a,int b,unsigned int c,Window d,int f)
{
return (Status)0;
}
],[
have_xinput2_multitouch=yes
AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH)
Expand Down

0 comments on commit fc0daeb

Please sign in to comment.