Use [[deprecated]] when CXX standard is at least 14

Fixes #1269
This commit is contained in:
Tobias Markus 2024-04-08 21:13:08 +02:00 committed by Christophe
parent 0904870e37
commit a2844eede8

View File

@ -594,7 +594,11 @@
# define GLM_DEPRECATED __declspec(deprecated)
# define GLM_ALIGNED_TYPEDEF(type, name, alignment) typedef __declspec(align(alignment)) type name
#elif GLM_COMPILER & (GLM_COMPILER_GCC | GLM_COMPILER_CLANG | GLM_COMPILER_INTEL)
# if GLM_LANG & GLM_LANG_CXX14_FLAG
# define GLM_DEPRECATED [[deprecated]]
# else
# define GLM_DEPRECATED __attribute__((__deprecated__))
# endif
# define GLM_ALIGNED_TYPEDEF(type, name, alignment) typedef type name __attribute__((aligned(alignment)))
#elif (GLM_COMPILER & GLM_COMPILER_CUDA) || (GLM_COMPILER & GLM_COMPILER_HIP)
# define GLM_DEPRECATED