After this cleanup patch https://github.com/TomHyer/Roc/commit/5635d83d36263b7904cf88a942e7ed7707e07ec9, Roc still cannot be compiled using gcc. The following have to be fixed: * [ ] Segfault with a pair of `setjmp`/`longjmp` in the UCI main loop. * [x] `GetTickCount64` is available only on Windows Vista and later and requires `#define _WIN32_WINNT 0x0600` on gcc. * [ ] gcc complains on `NullTerminate` and `check_state` that is called before declaration (but still compiles with `-fpermissive`) * [x] `::main` must be `int` though the return statement is unreachable * [x] missing some includes (cmath for log, sqrt etc and algorithm `std::find` and `std::sort` * [ ] the `TBProbe` is duplicated (beginning and lines ~1700) I'll probably do a PR for all but the 3rd (code structure).
After this cleanup patch 5635d83, Roc still cannot be compiled using gcc. The following have to be fixed:
setjmp/longjmpin the UCI main loop.GetTickCount64is available only on Windows Vista and later and requires#define _WIN32_WINNT 0x0600on gcc.NullTerminateandcheck_statethat is called before declaration (but still compiles with-fpermissive)::mainmust beintthough the return statement is unreachablestd::findandstd::sortTBProbeis duplicated (beginning and lines ~1700)I'll probably do a PR for all but the 3rd (code structure).