From 87cfc312b4001a6d63b6dcff102b693853b790d1 Mon Sep 17 00:00:00 2001 From: Collin Baker Date: Wed, 29 Oct 2014 01:38:04 -0400 Subject: [PATCH] Fixed build error due missing includes 'uninitialized' enum was referenced in 'ulp.inl' and 'func_vector_relational.inl' but the header where it is declared, 'type_vec.hpp' was not included in either. Solution: include 'type_vec.hpp' in 'ulp.hpp' and 'func_vector_relational.hpp' --- glm/detail/func_vector_relational.hpp | 3 +++ glm/gtc/ulp.hpp | 1 + 2 files changed, 4 insertions(+) diff --git a/glm/detail/func_vector_relational.hpp b/glm/detail/func_vector_relational.hpp index 3786caea..67a800fc 100644 --- a/glm/detail/func_vector_relational.hpp +++ b/glm/detail/func_vector_relational.hpp @@ -43,6 +43,9 @@ #include "precision.hpp" #include "setup.hpp" +// Dependency for 'uninitialized' enum +#include "type_vec.hpp" + #if !((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER <= GLM_COMPILER_VC10)) // Workaround a Visual C++ bug namespace glm diff --git a/glm/gtc/ulp.hpp b/glm/gtc/ulp.hpp index ee7a1f0a..ca6a6bcf 100644 --- a/glm/gtc/ulp.hpp +++ b/glm/gtc/ulp.hpp @@ -42,6 +42,7 @@ #include "../detail/setup.hpp" #include "../detail/precision.hpp" #include "../detail/type_int.hpp" +#include "../detail/type_vec.hpp" #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED)) # pragma message("GLM: GLM_GTC_ulp extension included")