From cb186b864f4b3151dbd3082b490f6903ef1d739b Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Wed, 26 Feb 2014 22:37:16 -0800 Subject: [PATCH] Change LC_NUMERIC support to use GLIBC instead of linux define. --- src/modules/xml/consumer_xml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/xml/consumer_xml.c b/src/modules/xml/consumer_xml.c index 4fa0904b..b7936a9d 100644 --- a/src/modules/xml/consumer_xml.c +++ b/src/modules/xml/consumer_xml.c @@ -842,7 +842,7 @@ static void output_xml( mlt_consumer this ) free( cwd ); } -#if !defined(__linux__) && !defined(__DARWIN__) +#if !defined(__GLIBC__) && !defined(__DARWIN__) // Get the current locale char *orig_localename = strdup( setlocale( LC_NUMERIC, NULL ) ); setlocale( LC_NUMERIC, "C" ); @@ -873,7 +873,7 @@ static void output_xml( mlt_consumer this ) xmlSaveFormatFileEnc( resource, doc, "utf-8", 1 ); } -#if !defined(__linux__) && !defined(__DARWIN__) +#if !defined(__GLIBC__) && !defined(__DARWIN__) // Restore the current locale setlocale( LC_NUMERIC, orig_localename ); free( orig_localename ); -- 2.39.2