mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
prevent name clash on Windows w/ RT_* defines
Windows' native headers using some our RT_* define's names for other things. Since the naming isn't very nice anyways, introducing some new ones (X11_RESTYPE_NONE, X11_RESTYPE_FONT, X11_RESTYPE_CURSOR) and define the old ones as an alias to them, in case some out-of-tree code still uses them. With thins change, we don't need to be so extremely careful about include ordering and have explicit #undef's in order to prevent name clashes on Win32 targets. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1355>
This commit is contained in:
committed by
Alan Coopersmith
parent
f789dca4e9
commit
232cad9ec3
@@ -52,7 +52,7 @@ present_free_events(WindowPtr window)
|
||||
return;
|
||||
|
||||
while ((event = window_priv->events))
|
||||
FreeResource(event->id, RT_NONE);
|
||||
FreeResource(event->id, X11_RESTYPE_NONE);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -224,7 +224,7 @@ present_select_input(ClientPtr client, XID eid, WindowPtr window, CARD32 mask)
|
||||
if (mask)
|
||||
event->mask = mask;
|
||||
else
|
||||
FreeResource(eid, RT_NONE);
|
||||
FreeResource(eid, X11_RESTYPE_NONE);
|
||||
return Success;
|
||||
}
|
||||
if (ret != BadValue)
|
||||
|
||||
Reference in New Issue
Block a user