diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 68ef009..d1454a4 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -6260,7 +6260,11 @@ static const std::string constExpressionArrayCopy = R"( #include #include -#if !defined(VULKAN_HPP_DISABLE_ENHANCED_MODE) +#if defined(VULKAN_HPP_DISABLE_ENHANCED_MODE) +# if !defined(VULKAN_HPP_NO_SMART_HANDLE) +# define VULKAN_HPP_NO_SMART_HANDLE +# endif +#else # include # include #endif diff --git a/vulkan/vulkan.hpp b/vulkan/vulkan.hpp index 1d092c5..3d4ba3d 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -46,7 +46,11 @@ #include #include -#if !defined(VULKAN_HPP_DISABLE_ENHANCED_MODE) +#if defined(VULKAN_HPP_DISABLE_ENHANCED_MODE) +# if !defined(VULKAN_HPP_NO_SMART_HANDLE) +# define VULKAN_HPP_NO_SMART_HANDLE +# endif +#else # include # include #endif