From: Dan Dennedy Date: Thu, 5 Mar 2015 07:41:39 +0000 (-0800) Subject: Fix build on OS X and MinGW. X-Git-Tag: 1.1.3~3 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=8ae12f557394d1745f39c843d56fc4cf75167266;hp=8ae12f557394d1745f39c843d56fc4cf75167266 Fix build on OS X and MinGW. OS X requires the xlocale.h header to define locale_t: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/newlocale.3.html MinGW does not include implementations for newlocale() and uselocale(). Instead, use the previous approach using setlocale(). ---