unittests: fix x86_gcc2 build issues

This commit is contained in:
Kacper Kasper
2026-01-24 12:02:56 +01:00
parent 43131098dd
commit 17c18c1b0d
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -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)