unittests: fix x86_gcc2 build issues
This commit is contained in:
@@ -51,6 +51,7 @@
|
|||||||
#define _IOS_APPEND 8
|
#define _IOS_APPEND 8
|
||||||
#define _IOS_BIN 128
|
#define _IOS_BIN 128
|
||||||
|
|
||||||
|
#define _IO_USER_BUF 1
|
||||||
#define _IO_UNBUFFERED 2
|
#define _IO_UNBUFFERED 2
|
||||||
#define _IO_IN_BACKUP 0x100
|
#define _IO_IN_BACKUP 0x100
|
||||||
#define _IO_LINE_BUF 0x200
|
#define _IO_LINE_BUF 0x200
|
||||||
|
|||||||
@@ -18,9 +18,10 @@ BListItem* gExpected[16];
|
|||||||
int gIndex = 0;
|
int gIndex = 0;
|
||||||
int gCount = 0;
|
int gCount = 0;
|
||||||
|
|
||||||
|
namespace CppUnit {
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
struct CppUnit::assertion_traits<BListItem*>
|
struct assertion_traits<BListItem*>
|
||||||
{
|
{
|
||||||
static bool equal(const BListItem* x, const BListItem* y) {
|
static bool equal(const BListItem* x, const BListItem* y) {
|
||||||
return x == y;
|
return x == y;
|
||||||
@@ -33,6 +34,8 @@ struct CppUnit::assertion_traits<BListItem*>
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
BListItem*
|
BListItem*
|
||||||
CheckExpected(BListItem* item, void* arg)
|
CheckExpected(BListItem* item, void* arg)
|
||||||
|
|||||||
Reference in New Issue
Block a user