mirror of
https://github.com/g-truc/glm.git
synced 2024-11-23 01:14:34 +00:00
Clang detection for GLM_INLINE
This commit is contained in:
parent
c868666c79
commit
efcecbd81a
@ -694,9 +694,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if GLM_COMPILER & GLM_COMPILER_GCC
|
#if GLM_COMPILER & GLM_COMPILER_GCC
|
||||||
#define GLM_VAR_USED __attribute__ ((unused))
|
# define GLM_VAR_USED __attribute__ ((unused))
|
||||||
#else
|
#else
|
||||||
#define GLM_VAR_USED
|
# define GLM_VAR_USED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if(defined(GLM_FORCE_INLINE))
|
#if(defined(GLM_FORCE_INLINE))
|
||||||
@ -704,6 +704,8 @@
|
|||||||
# define GLM_INLINE __forceinline
|
# define GLM_INLINE __forceinline
|
||||||
# elif((GLM_COMPILER & GLM_COMPILER_GCC) && (GLM_COMPILER >= GLM_COMPILER_GCC34))
|
# elif((GLM_COMPILER & GLM_COMPILER_GCC) && (GLM_COMPILER >= GLM_COMPILER_GCC34))
|
||||||
# define GLM_INLINE __attribute__((always_inline))
|
# define GLM_INLINE __attribute__((always_inline))
|
||||||
|
# elif(GLM_COMPILER & GLM_COMPILER_CLANG)
|
||||||
|
# define GLM_INLINE __attribute__((always_inline))
|
||||||
# else
|
# else
|
||||||
# define GLM_INLINE inline
|
# define GLM_INLINE inline
|
||||||
# endif//GLM_COMPILER
|
# endif//GLM_COMPILER
|
||||||
|
Loading…
Reference in New Issue
Block a user