comparison src/video/x11/SDL_x11dyn.h @ 1235:f60f6f4ffc6f

Make some dynamic X11 symbols option. _XData32 and _XRead32 are only available on 64-bit systems, and are chosen with macros in the X11 headers. So on 32-bit systems, it should fail to find these symbols and keep going anyhow.
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 06 Jan 2006 20:56:13 +0000
parents d05306f0dc21
children a388f2b59044
comparison
equal deleted inserted replaced
1234:73676c1f56ee 1235:f60f6f4ffc6f
56 /* evil function signatures... */ 56 /* evil function signatures... */
57 typedef Bool (*SDL_X11_XESetWireToEventRetType)(Display*,XEvent*,xEvent*); 57 typedef Bool (*SDL_X11_XESetWireToEventRetType)(Display*,XEvent*,xEvent*);
58 typedef int (*SDL_X11_XSynchronizeRetType)(Display*); 58 typedef int (*SDL_X11_XSynchronizeRetType)(Display*);
59 typedef Status (*SDL_X11_XESetEventToWireRetType)(Display*,XEvent*,xEvent*); 59 typedef Status (*SDL_X11_XESetEventToWireRetType)(Display*,XEvent*,xEvent*);
60 60
61 #define SDL_X11_SYM(ret,fn,params) extern ret (*p##fn) params; 61 #define SDL_X11_SYM(req,ret,fn,params) extern ret (*p##fn) params;
62 #include "SDL_x11sym.h" 62 #include "SDL_x11sym.h"
63 #undef SDL_X11_SYM 63 #undef SDL_X11_SYM
64 64
65 /* Macro in the xlib headers, not an actual symbol... */ 65 /* Macro in the xlib headers, not an actual symbol... */
66 #define pXDestroyImage XDestroyImage 66 #define pXDestroyImage XDestroyImage