Fixed GCC build

This commit is contained in:
Christophe Riccio
2014-11-01 23:35:10 +01:00
parent 8a882ffdf1
commit 41c00872a1
11 changed files with 80 additions and 36 deletions

View File

@@ -10,7 +10,9 @@
#include <glm/gtc/bitfield.hpp>
#include <glm/gtc/type_precision.hpp>
#include <glm/vector_relational.hpp>
//#include <glm/vec2.hpp>
#if GLM_ARCH != GLM_ARCH_PURE
# include <glm/detail/intrinsic_integer.hpp>
#endif
#include <ctime>
#include <cstdio>
#include <vector>

View File

@@ -10,8 +10,9 @@
#include <glm/gtc/integer.hpp>
#include <glm/gtc/type_precision.hpp>
#include <glm/gtc/vec1.hpp>
#include <ctime>
#include <vector>
#include <ctime>
#include <cstdio>
namespace isPowerOfTwo
{
@@ -254,8 +255,8 @@ namespace ceilPowerOfTwo
std::clock_t Timestramp2 = std::clock();
printf("ceilPowerOfTwo_loop: %d clocks\n", Timestramp1 - Timestramp0);
printf("glm::ceilPowerOfTwo: %d clocks\n", Timestramp2 - Timestramp1);
std::printf("ceilPowerOfTwo_loop: %d clocks\n", static_cast<unsigned int>(Timestramp1 - Timestramp0));
std::printf("glm::ceilPowerOfTwo: %d clocks\n", static_cast<unsigned int>(Timestramp2 - Timestramp1));
return Error;
}