|
|
|
@ -110,6 +110,10 @@ namespace glm |
|
|
|
|
# define GLM_RESTRICT __restrict |
|
|
|
|
# define GLM_ALIGN(x) __declspec(align(x)) |
|
|
|
|
//# define aligned(x) __declspec(align(x)) struct
|
|
|
|
|
#elif(defined(GLM_COMPILER) && (GLM_COMPILER & GLM_COMPILER_GCC)) |
|
|
|
|
# define GLM_DEPRECATED deprecated |
|
|
|
|
# define GLM_RESTRICT |
|
|
|
|
# define GLM_ALIGN(x) __attribute__(aligned(x)) |
|
|
|
|
#else |
|
|
|
|
# define GLM_DEPRECATED |
|
|
|
|
# define GLM_RESTRICT |
|
|
|
@ -118,7 +122,6 @@ namespace glm |
|
|
|
|
|
|
|
|
|
////////////////////
|
|
|
|
|
// check type sizes
|
|
|
|
|
#ifndef GLM_STATIC_ASSERT_NULL |
|
|
|
|
GLM_STATIC_ASSERT(sizeof(glm::detail::int8) == 1, "int8 size isn't 1 byte on this platform"); |
|
|
|
|
GLM_STATIC_ASSERT(sizeof(glm::detail::int16) == 2, "int16 size isn't 2 bytes on this platform"); |
|
|
|
|
GLM_STATIC_ASSERT(sizeof(glm::detail::int32) == 4, "int32 size isn't 4 bytes on this platform"); |
|
|
|
@ -132,6 +135,5 @@ namespace glm |
|
|
|
|
GLM_STATIC_ASSERT(sizeof(glm::detail::float16) == 2, "float16 size isn't 2 bytes on this platform"); |
|
|
|
|
GLM_STATIC_ASSERT(sizeof(glm::detail::float32) == 4, "float32 size isn't 4 bytes on this platform"); |
|
|
|
|
GLM_STATIC_ASSERT(sizeof(glm::detail::float64) == 8, "float64 size isn't 8 bytes on this platform"); |
|
|
|
|
#endif//GLM_STATIC_ASSERT_NULL
|
|
|
|
|
|
|
|
|
|
#endif //glm_glm
|
|
|
|
|