From b53cc5d09866f0373aea218baee27dd9c8bfb437 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Sun, 1 May 2016 01:26:42 +0200 Subject: [PATCH] Fixed build on non-VC compilers --- glm/detail/type_vec4.hpp | 8 ++++---- glm/detail/type_vec4.inl | 8 ++++---- glm/detail/type_vec4_sse2.inl | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/glm/detail/type_vec4.hpp b/glm/detail/type_vec4.hpp index 98862759..624bcf8f 100644 --- a/glm/detail/type_vec4.hpp +++ b/glm/detail/type_vec4.hpp @@ -259,10 +259,10 @@ namespace detail // -- Unary arithmetic operators -- - GLM_FUNC_DECL tvec4 & __vectorcall operator=(tvec4 const & v) GLM_DEFAULT; + GLM_FUNC_DECL tvec4 & operator=(tvec4 const & v) GLM_DEFAULT; template - GLM_FUNC_DECL tvec4 & __vectorcall operator=(tvec4 const & v); + GLM_FUNC_DECL tvec4 & operator=(tvec4 const & v); template GLM_FUNC_DECL tvec4 & operator+=(U scalar); template @@ -358,7 +358,7 @@ namespace detail GLM_FUNC_DECL tvec4 operator+(tvec1 const & v1, tvec4 const & v2); template - GLM_FUNC_DECL tvec4 __vectorcall operator+(tvec4 const & v1, tvec4 const & v2); + GLM_FUNC_DECL tvec4 operator+(tvec4 const & v1, tvec4 const & v2); template GLM_FUNC_DECL tvec4 operator-(tvec4 const & v, T scalar); @@ -388,7 +388,7 @@ namespace detail GLM_FUNC_DECL tvec4 operator*(tvec1 const & v1, tvec4 const & v2); template - GLM_FUNC_DECL tvec4 __vectorcall operator*(tvec4 const & v1, tvec4 const & v2); + GLM_FUNC_DECL tvec4 operator*(tvec4 const & v1, tvec4 const & v2); template GLM_FUNC_DECL tvec4 operator/(tvec4 const & v, T scalar); diff --git a/glm/detail/type_vec4.inl b/glm/detail/type_vec4.inl index 1d36a363..5bcb2094 100644 --- a/glm/detail/type_vec4.inl +++ b/glm/detail/type_vec4.inl @@ -228,7 +228,7 @@ namespace glm # if !GLM_HAS_DEFAULTED_FUNCTIONS template - GLM_FUNC_QUALIFIER tvec4 & __vectorcall tvec4::operator=(tvec4 const & v) + GLM_FUNC_QUALIFIER tvec4& tvec4::operator=(tvec4 const & v) { this->x = v.x; this->y = v.y; @@ -240,7 +240,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER tvec4 & __vectorcall tvec4::operator=(tvec4 const & v) + GLM_FUNC_QUALIFIER tvec4& tvec4::operator=(tvec4 const & v) { this->x = static_cast(v.x); this->y = static_cast(v.y); @@ -682,7 +682,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec4 __vectorcall operator+(tvec4 const & v1, tvec4 const & v2) + GLM_FUNC_QUALIFIER tvec4 operator+(tvec4 const & v1, tvec4 const & v2) { return tvec4( v1.x + v2.x, @@ -782,7 +782,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec4 __vectorcall operator*(tvec4 const & v1, tvec4 const & v2) + GLM_FUNC_QUALIFIER tvec4 operator*(tvec4 const & v1, tvec4 const & v2) { return tvec4( v1.x * v2.x, diff --git a/glm/detail/type_vec4_sse2.inl b/glm/detail/type_vec4_sse2.inl index 88dd4ed1..9b3258de 100644 --- a/glm/detail/type_vec4_sse2.inl +++ b/glm/detail/type_vec4_sse2.inl @@ -76,7 +76,7 @@ namespace glm } template <> - GLM_FUNC_QUALIFIER tvec4 __vectorcall operator+(tvec4 const & v1, tvec4 const & v2) + GLM_FUNC_QUALIFIER tvec4 operator+(tvec4 const & v1, tvec4 const & v2) { tvec4 Result(uninitialize); Result.data = _mm_add_ps(v1.data, v2.data); @@ -84,7 +84,7 @@ namespace glm } template <> - GLM_FUNC_QUALIFIER tvec4 __vectorcall operator*(tvec4 const & v1, tvec4 const & v2) + GLM_FUNC_QUALIFIER tvec4 operator*(tvec4 const & v1, tvec4 const & v2) { tvec4 Result(uninitialize); Result.data = _mm_mul_ps(v1.data, v2.data);