Add CPP #error if trying to use recording on a non-Windows platform
diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index 7e70a9e..b11edff 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h
@@ -1932,7 +1932,11 @@ #endif #if VMA_RECORDING_ENABLED - #include <windows.h> + #if defined(_WIN32) + #include <windows.h> + #else + #error "VMA Recording functionality is not yet available for non-Windows platforms" + #endif #endif // Define this macro to declare maximum supported Vulkan version in format AAABBBCCC,