I'm back again trying to compile Crafty v25.3, with Microsoft VS 2017.
book.c, line 1438 seems incorrect.
This needs a compatibility fix.
These are causing the compiler to error.
I think working on MacOs, Linux, GCC only, has lost compile compatibility with Windows.
Careful, they are not the same time units.
Re the errors about unistd.h (tbcore.c(11) for example) - that doesn't really make sense to me. In the source I have that is not included if _WIN32 is defined, and MSVC should define that by default.
Typically Crafty includes unistd.h and other POSIX headers within #if defined(UNIX).
After looking deeper into the problem, and many trials and changes, I managed to get Crafty v25.3 compiled, with Microsoft VS 2017.
However, I couldn't get /DSYZYGY to work, so it is without tablebase support for now.
Compiled for up to 64 CPUs. Give it a whirl.
Updated the file at the previous URL.
By some miracle , I managed to (Microsoft VS 2017) compile with /DSYZYGY. It took a lot of changes. I'm not sure it even works as intended.
If someone could test it for me, that would be nice.