kcat
kcat copied to clipboard
Windows build fails because of multi-line macro expansion
I had to upgrade the solution to use Visual Studio 2019 and Windows SDK version 10.xx
These lines in input.c
don't compile
static size_t inbuf_get_alloc_size (const struct inbuf *inbuf,
size_t min_size) {
...
return MAX(min_size,
#ifdef MREMAP_MAYMOVE
4096
#else
1024
#endif
);
Had to change to the "naive" way to get it to compile
#ifdef MREMAP_MAYMOVE
return MAX(min_size,
4096
);
#else
return MAX(min_size,
1024
);
#endif