Skip to content

Commit

Permalink
Use [[deprecated]] when CXX standard is at least 14
Browse files Browse the repository at this point in the history
Fixes #1269
  • Loading branch information
tobbi authored and christophe-lunarg committed Apr 12, 2024
1 parent 0904870 commit a2844ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion glm/detail/setup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
# define GLM_DEPRECATED __attribute__((__deprecated__))
# 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
Expand Down

0 comments on commit a2844ee

Please sign in to comment.