From 7b08b8f375c39d155789e97f36028ed8d883a58e Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Fri, 4 May 2018 11:03:27 +0200 Subject: [PATCH] Fixed preprocessor macros to fix compilation in C projects. Issue #26. Thanks @jesta88 ! --- src/vk_mem_alloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index 3a6a6a5..40e0d04 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -2181,7 +2181,7 @@ void vmaDestroyImage( #endif // AMD_VULKAN_MEMORY_ALLOCATOR_H // For Visual Studio IntelliSense. -#ifdef __INTELLISENSE__ +#if defined(__cplusplus) && defined(__INTELLISENSE__) #define VMA_IMPLEMENTATION #endif