Guard definition of VULKAN_HPP_STORAGE_API by an if !defined(); extend internal support to gcc and clang.

+ mention that define in the README.md
This commit is contained in:
asuessenbach
2021-01-14 14:32:01 +01:00
parent 822bcdcb4a
commit 376dd7aff3
3 changed files with 43 additions and 12 deletions

View File

@@ -4855,14 +4855,27 @@ namespace VULKAN_HPP_NAMESPACE
# endif
#endif
#if defined( _WIN32 ) && defined( VULKAN_HPP_STORAGE_SHARED )
# ifdef VULKAN_HPP_STORAGE_SHARED_EXPORT
# define VULKAN_HPP_STORAGE_API __declspec( dllexport )
#if !defined( VULKAN_HPP_STORAGE_API )
# if defined( VULKAN_HPP_STORAGE_SHARED )
# if defined( _MSC_VER )
# if defined( VULKAN_HPP_STORAGE_SHARED_EXPORT )
# define VULKAN_HPP_STORAGE_API __declspec( dllexport )
# else
# define VULKAN_HPP_STORAGE_API __declspec( dllimport )
# endif
# elif defined( __clang__ ) || defined( __GNUC__ )
# if defined( VULKAN_HPP_STORAGE_SHARED_EXPORT )
# define VULKAN_HPP_STORAGE_API __attribute__( ( visibility( "default" ) ) )
# else
# define VULKAN_HPP_STORAGE_API
# endif
# else
# define VULKAN_HPP_STORAGE_API
# pragma warning Unknown import / export semantics
# endif
# else
# define VULKAN_HPP_STORAGE_API __declspec( dllimport )
# define VULKAN_HPP_STORAGE_API
# endif
#else
# define VULKAN_HPP_STORAGE_API
#endif
#if !defined( VULKAN_HPP_DEFAULT_DISPATCHER )