fix compilation when ctype.h is included

This commit is contained in:
withmorten 2021-07-01 21:49:01 +02:00
parent 2071abd295
commit f7816c577f

View file

@ -47,15 +47,15 @@ WriteSaveBuf(uint8 *&buf, 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)