cmake/sdlchecks.cmake
changeset 7266 6caad66a4966
parent 7182 1089a8a701c3
child 7367 d6eabafa8776
     1.1 --- a/cmake/sdlchecks.cmake	Sun Jun 02 08:48:52 2013 -0700
     1.2 +++ b/cmake/sdlchecks.cmake	Sun Jun 02 20:20:18 2013 +0600
     1.3 @@ -356,6 +356,14 @@
     1.4          set(SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1)
     1.5        endif(HAVE_XGENERICEVENT)
     1.6  
     1.7 +      check_c_source_compiles("
     1.8 +          #include <X11/Xlibint.h>
     1.9 +          extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len);
    1.10 +          int main(int argc, char **argv) {}" HAVE_CONST_XDATA32)
    1.11 +      if(HAVE_CONST_XDATA32)
    1.12 +        set(SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 1)
    1.13 +      endif(HAVE_CONST_XDATA32)
    1.14 +
    1.15        check_function_exists(XkbKeycodeToKeysym SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM)
    1.16  
    1.17        if(VIDEO_X11_XCURSOR AND HAVE_XCURSOR_H)