Include windows.h on windows platforms in case the DynamicLoader is enabled. (#431)

This commit is contained in:
Markus Tavenrath
2019-11-11 17:23:35 +01:00
committed by Andreas Süßenbach
parent 581b7cb227
commit 661d2a9a7c
2 changed files with 25 additions and 12 deletions

View File

@@ -56,8 +56,18 @@
# define VULKAN_HPP_ASSERT assert
#endif
#if defined(__linux__) || defined(__APPLE__)
# include <dlfcn.h>
#if !defined(VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL)
# define VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL 1
#endif
#if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL == 1
# if defined(__linux__) || defined(__APPLE__)
# include <dlfcn.h>
# endif
# if defined(_WIN32)
# include <windows.h>
# endif
#endif
static_assert( VK_HEADER_VERSION == 126 , "Wrong VK_HEADER_VERSION!" );
@@ -66834,10 +66844,6 @@ namespace VULKAN_HPP_NAMESPACE
template <> struct isStructureChainValid<WriteDescriptorSet, WriteDescriptorSetAccelerationStructureNV>{ enum { value = true }; };
template <> struct isStructureChainValid<WriteDescriptorSet, WriteDescriptorSetInlineUniformBlockEXT>{ enum { value = true }; };
#if !defined(VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL)
# define VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL 1
#endif
#if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL
class DynamicLoader
{