Browse Source

Fixed C++98 build

Christophe 6 years ago
parent
commit
a87784c125
1 changed files with 11 additions and 0 deletions
  1. 11 0
      test/ext/ext_scalar_integer.cpp

+ 11 - 0
test/ext/ext_scalar_integer.cpp

@@ -4,6 +4,8 @@
 #include <vector>
 #include <vector>
 #include <ctime>
 #include <ctime>
 #include <cstdio>
 #include <cstdio>
+
+#if GLM_LANG & GLM_LANG_CXX11_FLAG
 #include <chrono>
 #include <chrono>
 
 
 namespace isPowerOfTwo
 namespace isPowerOfTwo
@@ -673,3 +675,12 @@ int main()
 
 
 	return Error;
 	return Error;
 }
 }
+
+#else
+
+int main()
+{
+	return 0;
+}
+
+#endif