From 6ad1a5b57a6fbce9f4fdcc862c3f87f9546558b8 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 24 Sep 2020 16:27:20 -0500 Subject: [PATCH] anv: Add extern "C" guards Reviewed-by: Lionel Landwerlin Acked-by: Caio Oliveira Part-of: --- src/intel/vulkan/anv_private.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 8ad7c0d3e06..65c988f6af9 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -86,6 +86,10 @@ #include "vk_queue.h" #include "vk_log.h" +#ifdef __cplusplus +extern "C" { +#endif + /* Pre-declarations needed for WSI entrypoints */ struct wl_surface; struct wl_display; @@ -4055,4 +4059,8 @@ VK_DEFINE_NONDISP_HANDLE_CASTS(anv_performance_configuration_intel, base, # undef genX #endif +#ifdef __cplusplus +} +#endif + #endif /* ANV_PRIVATE_H */