From: Dan Dennedy Date: Wed, 26 Feb 2014 07:39:44 +0000 (-0800) Subject: These locale functions are defined by glibc, not Linux. X-Git-Url: https://git.sesse.net/?p=mlt;a=commitdiff_plain;h=427033a9f31a65aedc58ab8a439046a56291e8b4 These locale functions are defined by glibc, not Linux. --- diff --git a/src/framework/mlt_properties.c b/src/framework/mlt_properties.c index 3b42ceeb..c5ca94a9 100644 --- a/src/framework/mlt_properties.c +++ b/src/framework/mlt_properties.c @@ -144,7 +144,7 @@ int mlt_properties_set_lcnumeric( mlt_properties self, const char *locale ) { property_list *list = self->local; -#if defined(__linux__) || defined(__DARWIN__) +#if defined(__GLIBC__) || defined(__DARWIN__) if ( list->locale ) freelocale( list->locale ); list->locale = newlocale( LC_NUMERIC_MASK, locale, NULL ); @@ -174,7 +174,7 @@ const char* mlt_properties_get_lcnumeric( mlt_properties self ) { #if defined(__DARWIN__) result = querylocale( LC_NUMERIC, list->locale ); -#elif defined(__linux__) +#elif defined(__GLIBC__) result = list->locale->__names[ LC_NUMERIC ]; #else // TODO: not yet sure what to do on other platforms @@ -1394,7 +1394,7 @@ void mlt_properties_close( mlt_properties self ) free( list->name[ index ] ); } -#if defined(__linux__) || defined(__DARWIN__) +#if defined(__GLIBC__) || defined(__DARWIN__) // Cleanup locale if ( list->locale ) freelocale( list->locale );