diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index cb4b57b..686d193 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -23,6 +23,10 @@ #ifndef AMD_VULKAN_MEMORY_ALLOCATOR_H #define AMD_VULKAN_MEMORY_ALLOCATOR_H +#ifdef __cplusplus +extern "C" { +#endif + /** \mainpage Vulkan Memory Allocator \tableofcontents @@ -1235,6 +1239,10 @@ void vmaDestroyImage( /** @} */ +#ifdef __cplusplus +} +#endif + #endif // AMD_VULKAN_MEMORY_ALLOCATOR_H // For Visual Studio IntelliSense.