Prevent warning on multiple defined macro VULKAN_HPP_TYPESAFE_CONVERSION in 32 bit. (#71)
This commit is contained in:
committed by
Markus Tavenrath
parent
f7cf7eeb3e
commit
bdbf7fef28
@@ -46,7 +46,9 @@ static_assert( VK_HEADER_VERSION == 39 , "Wrong VK_HEADER_VERSION!" );
|
||||
// 32-bit vulkan is not typesafe for handles, so don't allow copy constructors on this platform by default.
|
||||
// To enable this feature on 32-bit platforms please define VULKAN_HPP_TYPESAFE_CONVERSION
|
||||
#if defined(__LP64__) || defined(_WIN64) || (defined(__x86_64__) && !defined(__ILP32__) ) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__)
|
||||
#define VULKAN_HPP_TYPESAFE_CONVERSION 1
|
||||
# if !defined( VULKAN_HPP_TYPESAFE_CONVERSION )
|
||||
# define VULKAN_HPP_TYPESAFE_CONVERSION
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if !defined(VULKAN_HPP_HAS_UNRESTRICTED_UNIONS)
|
||||
|
||||
Reference in New Issue
Block a user