mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
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:
parent
35897a1ac7
commit
b9262960ff
1 changed files with 9 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue