blob: 4853eee81e1d85767a03025dae66cd4779f915c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- pouetchess_src_0.2.0/src/sxmlgui/MathUtils.h.old 2006-05-26 21:22:57.000000000 -0400
+++ pouetchess_src_0.2.0/src/sxmlgui/MathUtils.h 2017-03-21 18:01:15.569181229 -0400
@@ -27,10 +27,13 @@
return (x < min) ? min : (x > max) ? max : x;
}
+// Not used anywhere and conflicts with C++11 std::round(float)
+#if __cplusplus < 201103L
inline int round(float f)
{
return int(f + 0.5f);
}
+#endif
inline float getNextRandom(){
return (float)rand()/(RAND_MAX + 1);
|