CarVac / librtprocess

A project to make RawTherapee's processing algorithms more readily available.
Other
53 stars 24 forks source link

Fix Compilation on Windows #73

Closed Calandracas606 closed 1 year ago

Calandracas606 commented 1 year ago

use _WIN32 macro instead of WIN32

define NOMINMAX so that #include doesn't interfere with std::min and std::max

Calandracas606 commented 1 year ago

MSVC really doesn't like VLAs, clang-cl has no problem with it though. Will reopen if I put the time into getting it to compile in MSVC, and not just MinGW and with clang-cl