X-Git-Url: https://code.delx.au/refind/blobdiff_plain/41a682188697edfe57a5cda884f698687bdcce3a..315c06865c0b4e3dfceec2107e6e12713813ea8a:/filesystems/test/fsw_posix_base.h diff --git a/filesystems/test/fsw_posix_base.h b/filesystems/test/fsw_posix_base.h index ee1d96c..0b7334b 100644 --- a/filesystems/test/fsw_posix_base.h +++ b/filesystems/test/fsw_posix_base.h @@ -41,6 +41,7 @@ #include #include +#include #include #include #include @@ -51,14 +52,14 @@ // types -typedef signed char fsw_s8; -typedef unsigned char fsw_u8; -typedef short fsw_s16; -typedef unsigned short fsw_u16; -typedef long fsw_s32; -typedef unsigned long fsw_u32; -typedef long long fsw_s64; -typedef unsigned long long fsw_u64; +typedef int8_t fsw_s8; +typedef uint8_t fsw_u8; +typedef int16_t fsw_s16; +typedef uint16_t fsw_u16; +typedef int32_t fsw_s32; +typedef uint32_t fsw_u32; +typedef int64_t fsw_s64; +typedef uint64_t fsw_u64; // allocation functions @@ -75,7 +76,7 @@ typedef unsigned long long fsw_u64; // message printing #define FSW_MSGSTR(s) s -#define FSW_MSGFUNC printf +#define FSW_MSGFUNC(str, ...) (fprintf(stderr, str, ##__VA_ARGS__)) // 64-bit hooks