Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
b7f15565
Commit
b7f15565
authored
Dec 28, 2015
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
gc.h
nx-X11/programs/Xserver/include/gc.h
+8
-6
misc.h
nx-X11/programs/Xserver/include/misc.h
+9
-0
No files found.
nx-X11/programs/Xserver/include/gc.h
View file @
b7f15565
...
@@ -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>
...
...
nx-X11/programs/Xserver/include/misc.h
View file @
b7f15565
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment