blob: 9acf98835ffca1b4921a583d28fbeba8af32d24f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--- common.h.orig 2012-05-07 01:48:43 UTC
+++ common.h
@@ -108,6 +108,7 @@ inline T deg2rad(T angle)
return angle * M_PI / 180.0;
}
+#if _LIBCPP_STD_VER <= 14
template <class T>
inline T clamp(T x, T a, T b)
{
@@ -118,6 +119,7 @@ inline T clamp(T x, T a, T b)
}
return x;
}
+#endif
extern bool isLittleEndian();
|