This function exists in the import library for all other architectures, and exists in libmingwex.a without an underscore prefix.
Signed-off-by: Martin Storsjö <[email protected]> --- mingw-w64-crt/Makefile.am | 1 + mingw-w64-crt/math/x86/_copysignf.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 mingw-w64-crt/math/x86/_copysignf.c diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am index 1d6370142..14399f440 100644 --- a/mingw-w64-crt/Makefile.am +++ b/mingw-w64-crt/Makefile.am @@ -232,6 +232,7 @@ src_ucrtbase=\ src_msvcrt32=\ $(src_msvcrt) \ + math/x86/_copysignf.c \ misc/lc_locale_func.c \ misc/wassert.c diff --git a/mingw-w64-crt/math/x86/_copysignf.c b/mingw-w64-crt/math/x86/_copysignf.c new file mode 100644 index 000000000..134adf20e --- /dev/null +++ b/mingw-w64-crt/math/x86/_copysignf.c @@ -0,0 +1,14 @@ +/** + * This file has no copyright assigned and is placed in the Public Domain. + * This file is part of the mingw-w64 runtime package. + * No warranty is given; refer to the file DISCLAIMER.PD within this package. + */ + +#include <math.h> + +float __cdecl _copysignf(float aX, float aY) +{ + return copysignf(aX, aY); +} + +float (__cdecl *__MINGW_IMP_SYMBOL(_copysignf))(float, float) = _copysignf; -- 2.17.1 _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
