Commit d28ecd1a authored by Ryan C. Gordon's avatar Ryan C. Gordon

More dynamic X11 fixes...catches some code in Xlib headers that caused

 dependencies...

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401229
parent 72c870cf
...@@ -37,12 +37,6 @@ Equipment Corporation. ...@@ -37,12 +37,6 @@ Equipment Corporation.
#include "../../x11/SDL_x11dyn.h" #include "../../x11/SDL_x11dyn.h"
/* Workaround code in headers... */
#define _XFlush p_XFlush
#define _XFlushGCCache p_XFlushGCCache
#define _XReply p_XReply
#define _XSend p_XSend
static XExtensionInfo _panoramiX_ext_info_data; static XExtensionInfo _panoramiX_ext_info_data;
static XExtensionInfo *panoramiX_ext_info = &_panoramiX_ext_info_data; static XExtensionInfo *panoramiX_ext_info = &_panoramiX_ext_info_data;
static /* const */ char *panoramiX_extension_name = PANORAMIX_PROTOCOL_NAME; static /* const */ char *panoramiX_extension_name = PANORAMIX_PROTOCOL_NAME;
......
...@@ -58,12 +58,6 @@ SOFTWARE. ...@@ -58,12 +58,6 @@ SOFTWARE.
#include "../../x11/SDL_x11dyn.h" #include "../../x11/SDL_x11dyn.h"
/* Workaround code in headers... */
#define _XFlush p_XFlush
#define _XFlushGCCache p_XFlushGCCache
#define _XReply p_XReply
#define _XSend p_XSend
static XExtensionInfo _xv_info_data; static XExtensionInfo _xv_info_data;
static XExtensionInfo *xv_info = &_xv_info_data; static XExtensionInfo *xv_info = &_xv_info_data;
static char *xv_extension_name = XvName; static char *xv_extension_name = XvName;
......
...@@ -66,12 +66,6 @@ Copyright (c) 1995,1996 The XFree86 Project, Inc ...@@ -66,12 +66,6 @@ Copyright (c) 1995,1996 The XFree86 Project, Inc
#include "../../x11/SDL_x11dyn.h" #include "../../x11/SDL_x11dyn.h"
/* Workaround code in headers... */
#define _XFlush p_XFlush
#define _XFlushGCCache p_XFlushGCCache
#define _XReply p_XReply
#define _XSend p_XSend
extern XExtDisplayInfo* SDL_NAME(xdga_find_display)(Display*); extern XExtDisplayInfo* SDL_NAME(xdga_find_display)(Display*);
extern char *SDL_NAME(xdga_extension_name); extern char *SDL_NAME(xdga_extension_name);
......
...@@ -30,12 +30,6 @@ Copyright (c) 1995,1996 The XFree86 Project, Inc ...@@ -30,12 +30,6 @@ Copyright (c) 1995,1996 The XFree86 Project, Inc
#include "../../x11/SDL_x11dyn.h" #include "../../x11/SDL_x11dyn.h"
/* Workaround code in headers... */
#define _XFlush p_XFlush
#define _XFlushGCCache p_XFlushGCCache
#define _XReply p_XReply
#define _XSend p_XSend
/* If you change this, change the Bases[] array below as well */ /* If you change this, change the Bases[] array below as well */
#define MAX_HEADS 16 #define MAX_HEADS 16
......
...@@ -49,12 +49,6 @@ from Kaleb S. KEITHLEY. ...@@ -49,12 +49,6 @@ from Kaleb S. KEITHLEY.
#include "../../x11/SDL_x11dyn.h" #include "../../x11/SDL_x11dyn.h"
/* Workaround code in headers... */
#define _XFlush p_XFlush
#define _XFlushGCCache p_XFlushGCCache
#define _XReply p_XReply
#define _XSend p_XSend
#ifdef DEBUG #ifdef DEBUG
#include <stdio.h> #include <stdio.h>
#endif #endif
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
/*#define DEBUG_DYNAMIC_X11 1*/ /*#define DEBUG_DYNAMIC_X11 1*/
#define __SDL_NO_REDEFINE_X11_HEADER_SYMS 1
#include "SDL_x11dyn.h" #include "SDL_x11dyn.h"
#ifdef DEBUG_DYNAMIC_X11 #ifdef DEBUG_DYNAMIC_X11
......
...@@ -65,6 +65,15 @@ typedef Status (*SDL_X11_XESetEventToWireRetType)(Display*,XEvent*,xEvent*); ...@@ -65,6 +65,15 @@ typedef Status (*SDL_X11_XESetEventToWireRetType)(Display*,XEvent*,xEvent*);
/* Macro in the xlib headers, not an actual symbol... */ /* Macro in the xlib headers, not an actual symbol... */
#define pXDestroyImage XDestroyImage #define pXDestroyImage XDestroyImage
/* Workaround code in headers... */
#if !__SDL_NO_REDEFINE_X11_HEADER_SYMS
#define _XFlush p_XFlush
#define _XFlushGCCache p_XFlushGCCache
#define _XReply p_XReply
#define _XSend p_XSend
#define _XData32 p_XData32
#endif
int SDL_X11_LoadSymbols(void); int SDL_X11_LoadSymbols(void);
void SDL_X11_UnloadSymbols(void); void SDL_X11_UnloadSymbols(void);
......
...@@ -130,6 +130,8 @@ SDL_X11_SYM(void,_XReadPad,(Display*,char*,long)) ...@@ -130,6 +130,8 @@ SDL_X11_SYM(void,_XReadPad,(Display*,char*,long))
SDL_X11_SYM(void,_XSend,(Display*,_Xconst char*,long)) SDL_X11_SYM(void,_XSend,(Display*,_Xconst char*,long))
SDL_X11_SYM(Status,_XReply,(Display*,xReply*,int,Bool)) SDL_X11_SYM(Status,_XReply,(Display*,xReply*,int,Bool))
SDL_X11_SYM(unsigned long,_XSetLastRequestRead,(Display*,xGenericReply*)) SDL_X11_SYM(unsigned long,_XSetLastRequestRead,(Display*,xGenericReply*))
SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len))
SDL_X11_SYM(void,_XRead32,(Display *dpy,register long *data,long len))
#if NeedWidePrototypes #if NeedWidePrototypes
SDL_X11_SYM(KeySym,XKeycodeToKeysym,(Display*,unsigned int,int)) SDL_X11_SYM(KeySym,XKeycodeToKeysym,(Display*,unsigned int,int))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment