--- STLport-5.1.5.orig/stlport/stl/config/_gcc.h +++ STLport-5.1.5/stlport/stl/config/_gcc.h @@ -459,3 +459,23 @@ # define _STLP_STATIC_TEMPLATE_DATA 1 #endif +/* Ugly hack here ; we pull in GNU libc to find out whether + * this platform has `long double' type. It solves #356570. + * + * THIS IS BAD BECAUSE WE POLLUTE THE GLOBAL NAMESPACE. + */ +#ifdef __GLIBC__ +# if !defined(_MATH_H) +# define _HACK_UNDEF_MATH_H +# define _MATH_H +# endif +# include +# if defined(__NO_LONG_DOUBLE_MATH) +# define _STLP_NO_LONG_DOUBLE +# endif +# if defined(_HACK_UNDEF_MATH_H) +# undef _HACK_UNDEF_MATH_H +# undef _MATH_H +# endif +#endif +