diff options
Diffstat (limited to 'xdelta3/testing/test.h')
-rw-r--r-- | xdelta3/testing/test.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xdelta3/testing/test.h b/xdelta3/testing/test.h index d1f1a22..30d13a3 100644 --- a/xdelta3/testing/test.h +++ b/xdelta3/testing/test.h | |||
@@ -18,8 +18,8 @@ extern "C" { | |||
18 | 18 | ||
19 | #define CHECK_OP(x,y,OP) \ | 19 | #define CHECK_OP(x,y,OP) \ |
20 | do { \ | 20 | do { \ |
21 | typeof(x) _x(x); \ | 21 | __typeof__(x) _x(x); \ |
22 | typeof(x) _y(y); \ | 22 | __typeof__(x) _y(y); \ |
23 | if (!(_x OP _y)) { \ | 23 | if (!(_x OP _y)) { \ |
24 | cerr << __FILE__ << ":" << __LINE__ << " Check failed: " << #x " " #OP " " #y << endl; \ | 24 | cerr << __FILE__ << ":" << __LINE__ << " Check failed: " << #x " " #OP " " #y << endl; \ |
25 | cerr << __FILE__ << ":" << __LINE__ << " Expected: " << _x << endl; \ | 25 | cerr << __FILE__ << ":" << __LINE__ << " Expected: " << _x << endl; \ |
@@ -68,5 +68,3 @@ pair<T, U> make_pair(const T& t, const U& u) { | |||
68 | 68 | ||
69 | using std::min; | 69 | using std::min; |
70 | using std::max; | 70 | using std::max; |
71 | |||
72 | |||