Skip to content

Commit

Permalink
Fixes for compilation under Linux gcc and clang. #2
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-sawicki-a committed Aug 27, 2018
1 parent 6277abb commit c7d1b58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions premake/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ buildoptions { "/MD" }


project "VmaReplay"
removeplatforms { "Linux-x64" }
kind "ConsoleApp"
language "C++"
location "../build"
Expand Down
9 changes: 9 additions & 0 deletions src/VmaUsage.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,18 @@ include all public interface declarations. Example:

#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 "vk_mem_alloc.h"

#ifdef __clang__
#pragma clang diagnostic pop
#endif

#endif // #ifdef _WIN32

#endif

0 comments on commit c7d1b58

Please sign in to comment.