Skip to content

Commit cbb988b

Browse files
committed
fix conflicts between declarations
1 parent a2d7e3f commit cbb988b

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

deimos/X11/Xlibint.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import core.stdc.stdio : fopen;
1212
import core.stdc.config;
1313
import core.stdc.stdlib : free, malloc, calloc, realloc;
1414

15-
import deimos.X11.X : XID;
15+
import deimos.X11.X : XID, GContext, KeySym, Font, VisualID, Window;
1616
import deimos.X11.Xmd : CARD32;
1717
import deimos.X11.Xlib : _XrmHashBucketRec, Bool,Screen, ScreenFormat, Status, Visual, XChar2b, XCharStruct,
1818
XConnectionWatchProc, XEvent, XErrorEvent, XExtCodes, XExtData, XFontStruct, XGCValues,

deimos/X11/Xmd.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ alias _SIZEOF SIZEOF;
5151
* need them. Note that bitfields are not guaranteed to be signed
5252
* (or even unsigned) according to ANSI C.
5353
*/
54-
version( X86_64 ){
54+
version( WORD64 ){
5555
alias long INT64;
5656
alias c_ulong CARD64;
5757
//~ # define B32 :32

deimos/X11/Xproto.d

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -171,18 +171,20 @@ we must redefine the following types in terms of Xmd.h's types, which may
171171
include bit fields. All of these are #undef'd at the end of this file,
172172
restoring the definitions in X.h. */
173173

174-
alias CARD32 Window;
175-
alias CARD32 Drawable;
176-
alias CARD32 Font;
177-
alias CARD32 Pixmap;
178-
alias CARD32 Cursor;
179-
alias CARD32 Colormap;
180-
alias CARD32 GContext;
181-
alias CARD32 Atom;
182-
alias CARD32 VisualID;
183-
alias CARD32 Time;
184-
alias CARD8 KeyCode;
185-
alias CARD32 KeySym;
174+
private{
175+
alias CARD32 Window;
176+
alias CARD32 Drawable;
177+
alias CARD32 Font;
178+
alias CARD32 Pixmap;
179+
alias CARD32 Cursor;
180+
alias CARD32 Colormap;
181+
alias CARD32 GContext;
182+
alias CARD32 Atom;
183+
alias CARD32 VisualID;
184+
alias CARD32 Time;
185+
alias CARD8 KeyCode;
186+
alias CARD32 KeySym;
187+
}
186188

187189
enum X_TCP_PORT = 6000; /* add display number */
188190

0 commit comments

Comments
 (0)