Fixed X11 XInput2 multitouch test to work in configure script.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 02 Mar 2014 01:59:25 -0500
changeset 8282484d2404c472
parent 8281 f280c6b5d08c
child 8283 176891c01b3c
Fixed X11 XInput2 multitouch test to work in configure script.

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.
configure
configure.in
     1.1 --- a/configure	Sun Mar 02 00:02:56 2014 -0500
     1.2 +++ b/configure	Sun Mar 02 01:59:25 2014 -0500
     1.3 @@ -20173,11 +20173,6 @@
     1.4  
     1.5  int event_type = XI_TouchBegin;
     1.6  XITouchClassInfo *t;
     1.7 -Status
     1.8 -XIAllowTouchEvents(Display *a,int b,unsigned int c,Window d,int f)
     1.9 -{
    1.10 -    return (Status)0;
    1.11 -}
    1.12  
    1.13    ;
    1.14    return 0;
     2.1 --- a/configure.in	Sun Mar 02 00:02:56 2014 -0500
     2.2 +++ b/configure.in	Sun Mar 02 01:59:25 2014 -0500
     2.3 @@ -1555,11 +1555,6 @@
     2.4              	],[
     2.5  int event_type = XI_TouchBegin;
     2.6  XITouchClassInfo *t;
     2.7 -Status 
     2.8 -XIAllowTouchEvents(Display *a,int b,unsigned int c,Window d,int f)
     2.9 -{
    2.10 -    return (Status)0;
    2.11 -}
    2.12              	],[
    2.13              	have_xinput2_multitouch=yes
    2.14              	AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH)