]> git.sesse.net Git - mlt/commitdiff
Change LC_NUMERIC support to use GLIBC instead of linux define.
authorDan Dennedy <dan@dennedy.org>
Thu, 27 Feb 2014 06:37:16 +0000 (22:37 -0800)
committerDan Dennedy <dan@dennedy.org>
Thu, 27 Feb 2014 06:37:16 +0000 (22:37 -0800)
src/modules/xml/consumer_xml.c

index 4fa0904ba12e47fc188c0700a945b08ec32b8c95..b7936a9d92f509db59986ab1efa85075255f4146 100644 (file)
@@ -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 );