]> git.sesse.net Git - mlt/commitdiff
Fix build on Debian kfreebsd.
authorDan Dennedy <dan@dennedy.org>
Fri, 22 Jul 2011 17:26:20 +0000 (10:26 -0700)
committerDan Dennedy <dan@dennedy.org>
Fri, 22 Jul 2011 22:02:49 +0000 (15:02 -0700)
src/framework/mlt_property.c
src/framework/mlt_property.h

index 5242cf4690029dbf9e9c5c7070640905dd99d864..5f751acfd51ac55b523706cdaffb9c91d648346a 100644 (file)
@@ -354,7 +354,7 @@ double mlt_property_get_double_l( mlt_property self, locale_t locale )
                return ( double )self->prop_position;
        else if ( self->types & mlt_prop_int64 )
                return ( double )self->prop_int64;
-#if defined(__linux__) || defined(__DARWIN__)
+#if defined(__GLIBC__) || defined(__DARWIN__)
        else if ( locale && ( self->types & mlt_prop_string ) && self->prop_string )
                return strtod_l( self->prop_string, NULL, locale );
 #endif
@@ -502,7 +502,7 @@ char *mlt_property_get_string_l( mlt_property self, locale_t locale )
                // Save the current locale
 #if defined(__DARWIN__)
                const char *localename = querylocale( LC_NUMERIC, locale );
-#elif defined(__linux__)
+#elif defined(__GLIBC__)
                const char *localename = locale->__names[ LC_NUMERIC ];
 #else
                // TODO: not yet sure what to do on other platforms
index b195a50092c1a7b5ccd21404e6c5fd718baf7cc2..2f92ff76d0552aa71074e4dbb2a9e1e72ff7c6df 100644 (file)
@@ -26,7 +26,7 @@
 
 #include "mlt_types.h"
 
-#if defined(__linux__) || defined(__DARWIN__)
+#if defined(__GLIBC__) || defined(__DARWIN__)
 #include <xlocale.h>
 #else
 typedef void* locale_t;