mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Fix GCC version detection for unrestricted unions (#28)
This commit is contained in:
parent
33071cd7a3
commit
6285f71d58
@ -295,7 +295,7 @@ std::string const versionCheckHeader = (
|
||||
"# define VULKAN_HPP_HAS_UNRESTRICTED_UNIONS\n"
|
||||
"# endif\n"
|
||||
"# elif defined(__GNUC__)\n"
|
||||
"# define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)\n"
|
||||
"# define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)\n"
|
||||
"# if 40600 <= GCC_VERSION\n"
|
||||
"# define VULKAN_HPP_HAS_UNRESTRICTED_UNIONS\n"
|
||||
"# endif\n"
|
||||
|
Loading…
Reference in New Issue
Block a user