Skip to content

Commit 21f656f

Browse files
Darwin: use the correct include for locale functions (#1987)
Fixes #1973 Signed-off-by: L. E. Segovia <amy@amyspark.me> Co-authored-by: Doug Walker <doug.walker@autodesk.com>
1 parent 1e17c9a commit 21f656f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/utils/NumberUtils.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@
1111
#endif
1212

1313
#include <cstdlib>
14+
#ifdef __APPLE__
15+
#include <xlocale.h>
16+
#else
1417
#include <locale>
18+
#endif
1519
#include <system_error>
16-
#include <type_traits>
1720

1821
namespace OCIO_NAMESPACE
1922
{

0 commit comments

Comments
 (0)