mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Merge pull request #581 from asuessenbach/deprecated
Use attribute [[deprecated]] only if __cplusplus >= 201402L.
This commit is contained in:
commit
6525c33958
@ -7612,12 +7612,9 @@ int main( int argc, char ** argv )
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef __has_cpp_attribute // Check if __has_cpp_attribute is present
|
||||
# if __has_cpp_attribute(deprecated) // Check for an attribute
|
||||
# define VULKAN_HPP_DEPRECATED(msg) [[deprecated(msg)]]
|
||||
# endif
|
||||
#endif
|
||||
#ifndef VULKAN_HPP_DEPRECATED
|
||||
#if __cplusplus >= 201402L
|
||||
# define VULKAN_HPP_DEPRECATED( msg ) [[deprecated( msg )]]
|
||||
#else
|
||||
# define VULKAN_HPP_DEPRECATED( msg )
|
||||
#endif
|
||||
|
||||
|
@ -171,12 +171,9 @@ static_assert( VK_HEADER_VERSION == 137, "Wrong VK_HEADER_VERSION!" );
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef __has_cpp_attribute // Check if __has_cpp_attribute is present
|
||||
# if __has_cpp_attribute( deprecated ) // Check for an attribute
|
||||
# define VULKAN_HPP_DEPRECATED( msg ) [[deprecated( msg )]]
|
||||
# endif
|
||||
#endif
|
||||
#ifndef VULKAN_HPP_DEPRECATED
|
||||
#if __cplusplus >= 201402L
|
||||
# define VULKAN_HPP_DEPRECATED( msg ) [[deprecated( msg )]]
|
||||
#else
|
||||
# define VULKAN_HPP_DEPRECATED( msg )
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user