cmake/sdlchecks.cmake
changeset 9718 d5955671f259
parent 9415 93547cc94383
child 10005 dea345d3b00a
equal deleted inserted replaced
9717:45a632fd9d83 9718:d5955671f259
   405             XNextEvent(display, &event);
   405             XNextEvent(display, &event);
   406             XGetEventData(display, cookie);
   406             XGetEventData(display, cookie);
   407             XFreeEventData(display, cookie); }" HAVE_XGENERICEVENT)
   407             XFreeEventData(display, cookie); }" HAVE_XGENERICEVENT)
   408       if(HAVE_XGENERICEVENT)
   408       if(HAVE_XGENERICEVENT)
   409         set(SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1)
   409         set(SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1)
   410       endif()
       
   411 
       
   412       check_c_source_compiles("
       
   413           #include <X11/Xlibint.h>
       
   414           extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len);
       
   415           int main(int argc, char **argv) {}" HAVE_CONST_XDATA32)
       
   416       if(HAVE_CONST_XDATA32)
       
   417         set(SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 1)
       
   418       endif()
   410       endif()
   419 
   411 
   420       check_function_exists(XkbKeycodeToKeysym SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM)
   412       check_function_exists(XkbKeycodeToKeysym SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM)
   421 
   413 
   422       if(VIDEO_X11_XCURSOR AND HAVE_XCURSOR_H)
   414       if(VIDEO_X11_XCURSOR AND HAVE_XCURSOR_H)