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>
This commit is contained in:
parent
9a7fb3a153
commit
afaad1b847
|
@ -44,6 +44,10 @@ else
|
||||||
conf_data.set('X_BYTE_ORDER', 'X_BIG_ENDIAN')
|
conf_data.set('X_BYTE_ORDER', 'X_BIG_ENDIAN')
|
||||||
endif
|
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 = []
|
glx_align64 = []
|
||||||
if cc.sizeof('unsigned long') == 8
|
if cc.sizeof('unsigned long') == 8
|
||||||
conf_data.set('_XSERVER64', '1')
|
conf_data.set('_XSERVER64', '1')
|
||||||
|
|
Loading…
Reference in New Issue