mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-15 22:00:37 +01:00
include: add comment on _XSERVER64 define
Since the whole 32/64 bit issue is a bit complex, it's worth adding some
comment on what the _XSERVER64 symbol really is needed for.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1413>
(cherry picked from commit afaad1b847)
This commit is contained in:
parent
66dc69fe25
commit
8e2eed4d78
1 changed files with 4 additions and 0 deletions
|
|
@ -44,6 +44,10 @@ else
|
|||
conf_data.set('X_BYTE_ORDER', 'X_BIG_ENDIAN')
|
||||
endif
|
||||
|
||||
# Defining _XSERVER64 on 64bit builds is VITAL, since otherwise Xlib headers
|
||||
# would define lots X types (eg. Atom, XID, etc) as 64 bit, but inside the
|
||||
# Xserver we really need them to be 32 bit (CARD32). When _SERVER64 is defined
|
||||
# the xlib headers will typedef them exactly to CARD32.
|
||||
glx_align64 = []
|
||||
if cc.sizeof('unsigned long') == 8
|
||||
conf_data.set('_XSERVER64', '1')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue