util/rb-tree: Work around C++'s dislike of offsetof
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 19 Aug 2023 01:57:25 +0000 (18:57 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 14 Sep 2023 22:31:22 +0000 (22:31 +0000)
commit0f917d93bf1a6664b65e1b62d97c9b46189a6c90
tree94864be92ddc5f1b69d5d0c1ddf41ccbee6f1488
parentf7472f23ba3b49d737f015405a64d6c4eaf49d25
util/rb-tree: Work around C++'s dislike of offsetof

This is the same technique used in src/compiler/glsl/list.h.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25091>
src/util/rb_tree.h