Fix name mangling for C

This patch force the header to be compiled as C.
This behavior allows to use this library in a C program.
This commit is contained in:
Jean-Sebastien Bevilacqua 2017-09-26 12:47:42 +02:00
parent 3606138794
commit 4cfa3d02c0

View File

@ -23,6 +23,10 @@
#ifndef AMD_VULKAN_MEMORY_ALLOCATOR_H #ifndef AMD_VULKAN_MEMORY_ALLOCATOR_H
#define AMD_VULKAN_MEMORY_ALLOCATOR_H #define AMD_VULKAN_MEMORY_ALLOCATOR_H
#ifdef __cplusplus
extern "C" {
#endif
/** \mainpage Vulkan Memory Allocator /** \mainpage Vulkan Memory Allocator
\tableofcontents \tableofcontents
@ -1235,6 +1239,10 @@ void vmaDestroyImage(
/** @} */ /** @} */
#ifdef __cplusplus
}
#endif
#endif // AMD_VULKAN_MEMORY_ALLOCATOR_H #endif // AMD_VULKAN_MEMORY_ALLOCATOR_H
// For Visual Studio IntelliSense. // For Visual Studio IntelliSense.