fungos / cr

cr.h: A Simple C Hot Reload Header-only Library
https://fungos.github.io/cr-simple-c-hot-reload/
MIT License
1.54k stars 101 forks source link

Fix test suite build for Visual Studio 16.3+ #59

Closed nslottow closed 3 years ago

nslottow commented 3 years ago

Looks like the CRPLATFORM* macros no longer exist, so updated those.

<experimental/filesystem> got deprecated with Visual Studio 16.3 and gives a compiler error like:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\experimental/filesystem(30,1): fatal error C1189: #error:  The <experimental/filesystem> header providing std::experim ental::filesystem is deprecated by Microsoft and will be REMOVED. It is superseded by the C++17 <filesystem> header providing std::filesystem. You can define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING to
acknowledge that you have received this warning. [C:\Users\nslot\dev\cr-test\fips-build\cr\win64-vstudio-debug\tests\crTest.vcxproj]

when you try to use it.

fungos commented 3 years ago

Thank you very much for your contribution!

nslottow commented 3 years ago

Thanks for sharing your library!