Fixes for compilation under Linux gcc and clang. #2

This commit is contained in:
Adam Sawicki 2018-08-27 12:30:53 +02:00
parent 6277abb3c4
commit c7d1b584b7
2 changed files with 10 additions and 0 deletions

View File

@ -61,6 +61,7 @@ buildoptions { "/MD" }
project "VmaReplay" project "VmaReplay"
removeplatforms { "Linux-x64" }
kind "ConsoleApp" kind "ConsoleApp"
language "C++" language "C++"
location "../build" location "../build"

View File

@ -36,9 +36,18 @@ include all public interface declarations. Example:
#else // #ifdef _WIN32 #else // #ifdef _WIN32
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare" // comparison of unsigned expression < 0 is always false
#endif
#include <vulkan/vulkan.h> #include <vulkan/vulkan.h>
#include "vk_mem_alloc.h" #include "vk_mem_alloc.h"
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // #ifdef _WIN32 #endif // #ifdef _WIN32
#endif #endif