OpenColorIO icon indicating copy to clipboard operation
OpenColorIO copied to clipboard

MinGW: Work around lack of strtof_l for locale independent parsing

Open amyspark opened this issue 3 years ago • 0 comments

👋

This PR is to catch a slipup in #1496 I've only found yesterday. MinGW-based compilers lack ucrtbase's definition of _strtof_l completely, and strtod_l is also missing from GCC, so neither are viable alternatives to achieve locale-independent floating point number parsing.

In this patch, I propose to apply a workaround similar to the one existing for macOS, that covers only this flavor of compilers.

amyspark avatar Oct 02 '22 16:10 amyspark