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 2bf81d5..628fb75 100644 --- a/xdelta3/testing/test.h +++ b/xdelta3/testing/test.h | |||
@@ -32,8 +32,8 @@ extern "C" { | |||
32 | 32 | ||
33 | #define CHECK_OP(x,y,OP) \ | 33 | #define CHECK_OP(x,y,OP) \ |
34 | do { \ | 34 | do { \ |
35 | typeof(x) _x(x); \ | 35 | __typeof__(x) _x(x); \ |
36 | typeof(x) _y(y); \ | 36 | __typeof__(x) _y(y); \ |
37 | if (!(_x OP _y)) { \ | 37 | if (!(_x OP _y)) { \ |
38 | cerr << __FILE__ << ":" << __LINE__ << " Check failed: " << #x " " #OP " " #y << endl; \ | 38 | cerr << __FILE__ << ":" << __LINE__ << " Check failed: " << #x " " #OP " " #y << endl; \ |
39 | cerr << __FILE__ << ":" << __LINE__ << " {0} " << _x << endl; \ | 39 | cerr << __FILE__ << ":" << __LINE__ << " {0} " << _x << endl; \ |
@@ -82,5 +82,3 @@ pair<T, U> make_pair(const T& t, const U& u) { | |||
82 | 82 | ||
83 | using std::min; | 83 | using std::min; |
84 | using std::max; | 84 | using std::max; |
85 | |||
86 | |||