···11-// Copyright 2018-2020, Collabora, Ltd.
11+// Copyright 2018-2022, Collabora, Ltd.
22// SPDX-License-Identifier: BSL-1.0
33/*!
44 * @file
55- * @brief Include all of the Vulkan headers in one place.
55+ * @brief Include all of the Vulkan headers in one place, and cope with any "messy" includes implied by it.
66 * @author Jakob Bornecrantz <jakob@collabora.com>
77+ * @author Ryan Pavlik <ryan.pavlik@collabora.com>
78 * @ingroup xrt_iface
89 */
910···1314#include "xrt/xrt_config_have.h"
14151516#ifdef XRT_HAVE_VULKAN
1717+// pre-emptively include windows.h if applicable so we can specify our own flags for it.
1618#include "xrt/xrt_windows.h"
17191820#define VK_NO_PROTOTYPES
1921#include <vulkan/vulkan.h>
2222+2323+#if defined(VK_USE_PLATFORM_XLIB_XRANDR_EXT) || defined(VK_USE_PLATFORM_XLIB_KHR)
2424+// the xlib header is notoriously polluting.
2525+#undef Status
2626+#undef Bool
2727+#endif
20282129#ifdef __cplusplus
2230extern "C" {