X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0b5c0e1ac19ac7520dea4477c581dd538e1815b6..51623cc53f350935337e57930eaaf1afe9a48c3b:/include/wx/x11/nanox/X11/Xlib.h diff --git a/include/wx/x11/nanox/X11/Xlib.h b/include/wx/x11/nanox/X11/Xlib.h index 3a4fb63db2..0e3aed4d23 100644 --- a/include/wx/x11/nanox/X11/Xlib.h +++ b/include/wx/x11/nanox/X11/Xlib.h @@ -5,10 +5,6 @@ #ifndef _DUMMY_XLIBH_ #define _DUMMY_XLIBH_ -#ifdef __GNUG__ - #pragma interface "Xlib.h" -#endif - /* Move away the typedef in XtoNX.h */ #define XFontStruct XFontStruct1 #include @@ -48,7 +44,7 @@ typedef struct { #define CWStackMode (1<<6) /* Values */ - + typedef struct { int x, y; int width, height; @@ -118,8 +114,8 @@ typedef struct { #define XFreeCursor(d, c) GrDestroyCursor(c) #define XFreeGC(d, gc) GrDestroyGC(gc) #define XSetBackground(d, gc, c) GrSetGCBackground(gc, c) -#define DefaultVisual(d, s) ((Visual*) NULL) -#define DefaultColormap(d, s) DefaultColormapOfScreen((Screen*) NULL) +#define DefaultVisual(d, s) (NULL) +#define DefaultColormap(d, s) DefaultColormapOfScreen(NULL) #define DefaultScreenOfDisplay(d) 0 #define XSetFillStyle(d, gc, s) wxNoop() #define XSetLineAttributes(d, gc, a, b, c, e) wxNoop() @@ -284,6 +280,12 @@ typedef int (*XErrorHandler) ( /* WARNING, this type not in Xlib spec */ #define KeymapStateMask 0 #define StructureNotifyMask GR_EVENT_MASK_UPDATE +#ifdef ConfigureNotify +/* XtoNX.h gets it wrong */ +#undef ConfigureNotify +#endif +#define ConfigureNotify GR_EVENT_TYPE_UPDATE + #ifndef FocusIn #define FocusIn GR_EVENT_TYPE_FOCUS_IN #define FocusOut GR_EVENT_TYPE_FOCUS_OUT