Fixed build

This commit is contained in:
Groove 2018-07-11 23:01:24 +02:00
parent 5620858a14
commit e30685ef96
2 changed files with 17 additions and 15 deletions

View File

@ -75,21 +75,23 @@ namespace detail
} type; } type;
}; };
template<length_t L, typename T> # if GLM_LANG & GLM_LANG_CXX11_FLAG
struct storage<L, T, true> template<length_t L, typename T>
{ struct storage<L, T, true>
typedef struct alignas(L * sizeof(T)) type { {
T data[L]; typedef struct alignas(L * sizeof(T)) type {
} type; T data[L];
}; } type;
};
template<typename T> template<typename T>
struct storage<3, T, true> struct storage<3, T, true>
{ {
typedef struct alignas(4 * sizeof(T)) type { typedef struct alignas(4 * sizeof(T)) type {
T data[4]; T data[4];
} type; } type;
}; };
# endif
# if GLM_ARCH & GLM_ARCH_SSE2_BIT # if GLM_ARCH & GLM_ARCH_SSE2_BIT
template<> template<>

View File

@ -119,7 +119,7 @@
/////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////
// C++ Version // C++ Version
// User defines: GLM_FORCE_CXX98, GLM_FORCE_CXX03, GLM_FORCE_CXX11, GLM_FORCE_CXX14 // User defines: GLM_FORCE_CXX98, GLM_FORCE_CXX03, GLM_FORCE_CXX11, GLM_FORCE_CXX14, GLM_FORCE_CXX17, GLM_FORCE_CXX2A
#define GLM_LANG_CXX98_FLAG (1 << 1) #define GLM_LANG_CXX98_FLAG (1 << 1)
#define GLM_LANG_CXX03_FLAG (1 << 2) #define GLM_LANG_CXX03_FLAG (1 << 2)