We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0904870 commit a2844eeCopy full SHA for a2844ee
glm/detail/setup.hpp
@@ -594,7 +594,11 @@
594
# define GLM_DEPRECATED __declspec(deprecated)
595
# define GLM_ALIGNED_TYPEDEF(type, name, alignment) typedef __declspec(align(alignment)) type name
596
#elif GLM_COMPILER & (GLM_COMPILER_GCC | GLM_COMPILER_CLANG | GLM_COMPILER_INTEL)
597
-# define GLM_DEPRECATED __attribute__((__deprecated__))
+# if GLM_LANG & GLM_LANG_CXX14_FLAG
598
+# define GLM_DEPRECATED [[deprecated]]
599
+# else
600
+# define GLM_DEPRECATED __attribute__((__deprecated__))
601
+# endif
602
# define GLM_ALIGNED_TYPEDEF(type, name, alignment) typedef type name __attribute__((aligned(alignment)))
603
#elif (GLM_COMPILER & GLM_COMPILER_CUDA) || (GLM_COMPILER & GLM_COMPILER_HIP)
604
# define GLM_DEPRECATED
0 commit comments