mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-27 03:24:15 +01:00
fix compilation when ctype.h is included
This commit is contained in:
parent
3988fec6e7
commit
65219365db
@ -83,29 +83,29 @@ WriteSaveBuf(uint8 *&buf, uint32 &length, const T &value)
|
|||||||
|
|
||||||
#ifdef VALIDATE_SAVE_SIZE
|
#ifdef VALIDATE_SAVE_SIZE
|
||||||
#define CheckSaveHeader(buf, a, b, c, d, size) do { \
|
#define CheckSaveHeader(buf, a, b, c, d, size) do { \
|
||||||
char _C; uint32 _size;\
|
char _c; uint32 _size;\
|
||||||
ReadSaveBuf(&_C, buf);\
|
ReadSaveBuf(&_c, buf);\
|
||||||
assert(_C == a);\
|
assert(_c == a);\
|
||||||
ReadSaveBuf(&_C, buf);\
|
ReadSaveBuf(&_c, buf);\
|
||||||
assert(_C == b);\
|
assert(_c == b);\
|
||||||
ReadSaveBuf(&_C, buf);\
|
ReadSaveBuf(&_c, buf);\
|
||||||
assert(_C == c);\
|
assert(_c == c);\
|
||||||
ReadSaveBuf(&_C, buf);\
|
ReadSaveBuf(&_c, buf);\
|
||||||
assert(_C == d);\
|
assert(_c == d);\
|
||||||
ReadSaveBuf(&_size, buf);\
|
ReadSaveBuf(&_size, buf);\
|
||||||
assert(_size == size);\
|
assert(_size == size);\
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
#define CheckSaveHeaderWithLength(buf,len,a,b,c,d,size) do { \
|
#define CheckSaveHeaderWithLength(buf,len,a,b,c,d,size) do { \
|
||||||
char _C; uint32 _size;\
|
char _c; uint32 _size;\
|
||||||
ReadSaveBuf(&_C, buf, len);\
|
ReadSaveBuf(&_c, buf, len);\
|
||||||
assert(_C == a);\
|
assert(_c == a);\
|
||||||
ReadSaveBuf(&_C, buf, len);\
|
ReadSaveBuf(&_c, buf, len);\
|
||||||
assert(_C == b);\
|
assert(_c == b);\
|
||||||
ReadSaveBuf(&_C, buf, len);\
|
ReadSaveBuf(&_c, buf, len);\
|
||||||
assert(_C == c);\
|
assert(_c == c);\
|
||||||
ReadSaveBuf(&_C, buf, len);\
|
ReadSaveBuf(&_c, buf, len);\
|
||||||
assert(_C == d);\
|
assert(_c == d);\
|
||||||
ReadSaveBuf(&_size, buf, len);\
|
ReadSaveBuf(&_size, buf, len);\
|
||||||
assert(_size == size);\
|
assert(_size == size);\
|
||||||
} while(0)
|
} while(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user