diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am index 54b70b8f8..cd136ab6e 100644 --- a/mingw-w64-crt/Makefile.am +++ b/mingw-w64-crt/Makefile.am @@ -456,7 +456,7 @@ src_ucrtbasearm64=\ src_msvcrt32=\ $(src_msvcrt) \ $(src_msvcrt_add_x86) \ - math/x86/_copysignf.c \ + math/i386__copysignf.c \ misc/___mb_cur_max_func.c \ misc/__p__osplatform.c \ misc/__pctype_func.c \ @@ -752,6 +752,7 @@ src_pre_msvcr100=\ misc/imaxdiv.c src_pre_msvcr120=\ + math/i386__copysignf.c \ misc/isblank.c \ misc/iswblank.c \ misc/wctrans.c \ @@ -774,7 +775,6 @@ src_crtdll=\ misc/crtdll__ismbblead.c \ misc/crtdll_fstat.c \ misc/crtdll_stat.c \ - math/x86/_copysignf.c \ misc/__p__mbctype.c src_msvcrt10=\ diff --git a/mingw-w64-crt/math/x86/_copysignf.c b/mingw-w64-crt/math/i386__copysignf.c similarity index 82% rename from mingw-w64-crt/math/x86/_copysignf.c rename to mingw-w64-crt/math/i386__copysignf.c index 134adf20e..b46814445 100644 --- a/mingw-w64-crt/math/x86/_copysignf.c +++ b/mingw-w64-crt/math/i386__copysignf.c @@ -4,6 +4,9 @@ * No warranty is given; refer to the file DISCLAIMER.PD within this package. */ +/* This source file is i386-only */ +#if defined(_X86_) || defined(__i386__) + #include float __cdecl _copysignf(float aX, float aY) @@ -12,3 +15,5 @@ float __cdecl _copysignf(float aX, float aY) } float (__cdecl *__MINGW_IMP_SYMBOL(_copysignf))(float, float) = _copysignf; + +#endif