First Example in README breaks in Mac
Steps to Recreate
- Put a file called
main.cin the root directory - Copy the code from the first example in the README into
main.c - Run
gcc main.c -isystem ctl
You get this error

NB
Removing the (__compar_fn_t) type cast sadly does not solve the bug.
Thanks, qsort has been removed entirely and replaced with an inline sort
By the way, why C99 and not C17?
Moving to C11 / C17 will allow MSVC compatibility (MSVC now fully supports C11 / C17).
I'll boot up windows today and check and run the examples against MSVC - stay posted
Great.
Make sure you use MSVC 16.8 for C11 / C17 support.
I have bumped up the support to C11. I compiled with the Developer Command Prompt (19.28,29335) for VS2019 on Windows 10 with cl /I ctl /std:c11 test.c without any problems. Let me know if you are still stuck
OK. Now all needed is to have CMake / Meson / XMake build with Windows support (For testing under Windows) and it will be perfect.
Thank You.
Maybe try a unity build? Unity builds hold back C++ with compile times, but CTL compiles exponentially quicker. You can even get creative with pre-compiled headers for some of the more basic templates to speed up your compile times even further.
I will try replicate your Makefile in XMake just to see if everything (Tests) runs on Windows.
Then you'll be able to make Windows' tests as part of the CI.
I do not know if the github machines support MSVC - they are ubuntu images I believe