diff --git a/hw/xquartz/GL/capabilities.c b/hw/xquartz/GL/capabilities.c index 1cafd28836..c16467ecc9 100644 --- a/hw/xquartz/GL/capabilities.c +++ b/hw/xquartz/GL/capabilities.c @@ -26,8 +26,13 @@ #include #include -#define Cursor Mac_Cursor -#define BOOL Mac_BOOL +/* QuickDraw in ApplicationServices conflicts with the basic X server headers + * (e.g. WindowPtr, now pulled in transitively via os.h -> xlibre_ptrtypes.h). + * Rename the QuickDraw symbols out of the way, matching sanitizedCarbon.h. */ +#define Cursor Mac_Cursor +#define BOOL Mac_BOOL +#define WindowPtr QD_WindowPtr +#define Picture QD_Picture #include #include #include @@ -35,6 +40,8 @@ #include #undef Cursor #undef BOOL +#undef WindowPtr +#undef Picture #include "capabilities.h"