cpp: avoid linking with GLIBC_2.27 on linux.

This commit is contained in:
dmitry 2020-06-15 22:43:30 +03:00 committed by jeefo
commit 3070a7c404

View file

@ -23,6 +23,11 @@
#include <math.h> #include <math.h>
// avoid linking to GLIBC_2.27
#if defined (CR_LINUX) && !defined (CR_CXX_INTEL) && defined (CR_ARCH_X86)
__asm__ (".symver powf,powf@GLIBC_2.0");
#endif
CR_NAMESPACE_BEGIN CR_NAMESPACE_BEGIN
constexpr float kFloatEpsilon = 0.01f; constexpr float kFloatEpsilon = 0.01f;