Merge pull request #853 from asuessenbach/StorageAPI

Guard definition of VULKAN_HPP_STORAGE_API by an if !defined(); extend internal support to gcc and clang.
This commit is contained in:
Andreas Süßenbach
2021-01-18 11:30:00 +01:00
committed by GitHub
3 changed files with 43 additions and 12 deletions

View File

@@ -4892,14 +4892,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 )