Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix caddr_t error on icc #19

Merged
merged 1 commit into from
Feb 2, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/xlib-backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ int xlib_locator(struct st_Rcairo_backend *be, double *x, double *y) {
XEvent event;
Rcairo_xlib_data *cd = (Rcairo_xlib_data *) be->backendSpecific;
Rcairo_xlib_data *cdEvent = NULL;
caddr_t temp;
XPointer temp;
int done = 0;
Display *display = cd->display;

Expand Down Expand Up @@ -179,7 +179,7 @@ static void ProcessX11DisplayEvents(Display *display)
}

static void handleDisplayEvent(Display *display, XEvent event) {
caddr_t temp;
XPointer temp;
Rcairo_xlib_data *xd = NULL;

if (event.xany.type == Expose) {
Expand Down Expand Up @@ -363,7 +363,7 @@ Rcairo_backend *Rcairo_new_xlib_backend(Rcairo_backend *be, const char *display,
XSetWMProtocols(xd->display, xd->window, &protocol, 1);
}

XSaveContext(xd->display, xd->window, devPtrContext, (caddr_t) xd);
XSaveContext(xd->display, xd->window, devPtrContext, (XPointer) xd);

XSelectInput(xd->display, xd->window,
ExposureMask | ButtonPressMask | StructureNotifyMask);
Expand Down