Commit b7f15565 authored by Mike Gabriel's avatar Mike Gabriel

pointer typedef in Xdefs.h: also catch Xdefs.h include in include/misc.h, make…

pointer typedef in Xdefs.h: also catch Xdefs.h include in include/misc.h, make undoing the FIXME more obvious.
parent 7eab400a
...@@ -52,16 +52,18 @@ SOFTWARE. ...@@ -52,16 +52,18 @@ SOFTWARE.
#include <nx-X11/X.h> /* for GContext, Mask */ #include <nx-X11/X.h> /* for GContext, Mask */
#ifndef _XTYPEDEF_POINTER
/* Don't let Xdefs.h define 'pointer' */
#define _XTYPEDEF_POINTER 1
#endif /* _XTYPEDEF_POINTER */
/* FIXME: for building this code against Xlib versions older than apprx. 04/2014 /* FIXME: for building this code against Xlib versions older than apprx. 04/2014
* we still have to define the pointer type via Xdefs.h. * we still have to define the pointer type via Xdefs.h.
* *
* The nx-libs code itself does not require the pointer definition. * The nx-libs code itself does not require the pointer definition.
* */
#ifndef _XTYPEDEF_POINTER #undef _XTYPEDEF_POINTER
// Don't let Xdefs.h define 'pointer'
#define _XTYPEDEF_POINTER 1
#endif // _XTYPEDEF_POINTER
*/
#include <nx-X11/Xdefs.h> /* for Bool */ #include <nx-X11/Xdefs.h> /* for Bool */
#include <nx-X11/Xproto.h> #include <nx-X11/Xproto.h>
......
...@@ -86,6 +86,15 @@ extern unsigned long serverGeneration; ...@@ -86,6 +86,15 @@ extern unsigned long serverGeneration;
/* Don't let Xdefs.h define 'pointer' */ /* Don't let Xdefs.h define 'pointer' */
#define _XTYPEDEF_POINTER 1 #define _XTYPEDEF_POINTER 1
#endif /* _XTYPEDEF_POINTER */ #endif /* _XTYPEDEF_POINTER */
/* FIXME: for building this code against Xlib versions older than apprx. 04/2014
* we still have to define the pointer type via Xdefs.h.
*
* The nx-libs code itself does not require the pointer definition.
*
*/
#undef _XTYPEDEF_POINTER
#include <nx-X11/Xdefs.h> #include <nx-X11/Xdefs.h>
#ifndef IN_MODULE #ifndef IN_MODULE
......
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