Browse Source

Improved int64 type for C99 support

Christophe Riccio 14 years ago
parent
commit
d868e52275
2 changed files with 4 additions and 1 deletions
  1. 3 0
      glm/core/_detail.hpp
  2. 1 1
      test/core/core_func_integer.cpp

+ 3 - 0
glm/core/_detail.hpp

@@ -31,6 +31,9 @@
 
 #include "setup.hpp"
 #include <cassert>
+#if(defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))
+#include <cstdint>
+#endif
 
 namespace glm{
 namespace detail

+ 1 - 1
test/core/core_func_integer.cpp

@@ -31,7 +31,7 @@ namespace extractField
 		result		Result;
 	};
 
-	typedef type<glm::uint64, glm::uint> typeU64;
+	typedef type<glm::uint64, glm::uint32> typeU64;
 
 	typeU64 const Data64[] =
 	{