vulkan/util: Make STACK_ARRAY() C++-friendly
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 1 Apr 2022 14:16:56 +0000 (07:16 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 8 Apr 2022 11:54:44 +0000 (11:54 +0000)
commitf0667be8b5c10020c64a6bac088f75861d1bbbba
tree90db42dd99cb477997f9ae1b9c493e04201219f0
parent8d30204ca4ddac1de025c1854d13650c34585924
vulkan/util: Make STACK_ARRAY() C++-friendly

C++ doesn't like the {0} initializer pattern when the first
field is not an integer, let's use the {} when __cplusplus is
defined.

Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>
src/vulkan/util/vk_util.h