radv: Define extern "C" linkage if C++

I am working on a project that uses radv_private.h from C++ code which needs this.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13103>
This commit is contained in:
Joshua Ashton 2021-09-07 13:39:17 +01:00 committed by Marge Bot
parent 35897a1ac7
commit b9262960ff

View file

@ -91,6 +91,11 @@ typedef uint32_t xcb_window_t;
#include "wsi_common.h"
#ifdef __cplusplus
extern "C"
{
#endif
/* Helper to determine if we should compile
* any of the Android AHB support.
*
@ -2897,4 +2902,8 @@ RADV_DEFINE_NONDISP_HANDLE_CASTS(radv_sampler, VkSampler)
RADV_DEFINE_NONDISP_HANDLE_CASTS(radv_sampler_ycbcr_conversion, VkSamplerYcbcrConversion)
RADV_DEFINE_NONDISP_HANDLE_CASTS(radv_semaphore, VkSemaphore)
#ifdef __cplusplus
}
#endif
#endif /* RADV_PRIVATE_H */