Browse Source

fixed: printf -> std::printf and missing include

jan p springer 12 years ago
parent
commit
2a52f56360
1 changed files with 3 additions and 2 deletions
  1. 3 2
      test/core/core_type_vec4.cpp

+ 3 - 2
test/core/core_type_vec4.cpp

@@ -11,6 +11,7 @@
 #include <glm/core/type_vec3.hpp>
 #include <glm/core/type_vec4.hpp>
 #include <glm/core/func_vector_relational.hpp>
+#include <cstdio>
 #include <ctime>
 #include <vector>
 
@@ -317,7 +318,7 @@ int test_vec4_perf_AoS(std::size_t Size)
 
 	std::clock_t EndTime = std::clock();
 
-	printf("AoS: %d\n", EndTime - StartTime);
+  std::printf("AoS: %d\n", EndTime - StartTime);
 
 	return Error;
 }
@@ -356,7 +357,7 @@ int test_vec4_perf_SoA(std::size_t Size)
 
 	std::clock_t EndTime = std::clock();
 
-	printf("SoA: %d\n", EndTime - StartTime);
+  std::printf("SoA: %d\n", EndTime - StartTime);
 
 	return Error;
 }