mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[CRT] Fix build with clang-cl 17
#pragma function(llabs) causes an error: "error: no_builtin attribute has no effect on defaulted or deleted functions" This is probably a bug in clang, see https://github.com/llvm/llvm-project/issues/116256
This commit is contained in:
parent
25723b4239
commit
78417c5532
2 changed files with 5 additions and 5 deletions
|
@ -99,7 +99,7 @@ _Check_return_ _CRT_JIT_INTRINSIC double __cdecl sqrt(_In_ double x);
|
|||
_Check_return_ double __cdecl tan(_In_ double x);
|
||||
_Check_return_ double __cdecl tanh(_In_ double x);
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#if defined(_MSC_VER) && !defined(__clang__)
|
||||
/* Prevent the compiler from generating calls to _CIatan2 */
|
||||
#pragma function(atan2)
|
||||
#ifdef _M_AMD64
|
||||
|
@ -148,7 +148,7 @@ _Check_return_ _CRTIMP int __cdecl _set_SSE2_enable(_In_ int flag);
|
|||
_Check_return_ _CRTIMP float __cdecl _nextafterf(_In_ float x, _In_ float y);
|
||||
_Check_return_ _CRTIMP int __cdecl _isnanf(_In_ float x);
|
||||
_Check_return_ _CRTIMP int __cdecl _fpclassf(_In_ float x);
|
||||
#ifdef _MSC_VER
|
||||
#if defined(_MSC_VER) && !defined(__clang__)
|
||||
/* Prevent the compiler from generating calls to __vdecl_floor2 */
|
||||
#pragma function(floor)
|
||||
#endif
|
||||
|
@ -202,7 +202,7 @@ _Check_return_ float __cdecl sqrtf(_In_ float x);
|
|||
_Check_return_ float __cdecl tanf(_In_ float x);
|
||||
_Check_return_ float __cdecl tanhf(_In_ float x);
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#if defined(_MSC_VER) && !defined(__clang__)
|
||||
/* Make sure intrinsics don't get in our way */
|
||||
#if defined(_M_AMD64) || defined(_M_ARM) || defined(_M_ARM64)
|
||||
#pragma function(acosf,asinf,atanf,atan2f,ceilf,cosf,coshf,expf,floorf,fmodf,logf,log10f,powf,sinf,sinhf,sqrtf,tanf,tanhf)
|
||||
|
@ -269,7 +269,7 @@ _Check_return_ __CRT_INLINE long double ldexpl(_In_ long double x, _In_ int y) {
|
|||
_Check_return_ __CRT_INLINE long double modfl(_In_ long double x, _Out_ long double *y) { return (long double)modf((double)x, (double *)y); }
|
||||
|
||||
/* Support for some functions, not exported in MSVCRT */
|
||||
#if (_MSC_VER >= 1929)
|
||||
#if (_MSC_VER >= 1929) && !defined(__clang__)
|
||||
_Check_return_ long lrint(_In_ double x);
|
||||
_Check_return_ long lrintf(_In_ float x);
|
||||
_Check_return_ long lrintl(_In_ long double x);
|
||||
|
|
|
@ -1428,7 +1428,7 @@ extern "C" {
|
|||
|
||||
__MINGW_EXTENSION _Check_return_ lldiv_t __cdecl lldiv(_In_ long long, _In_ long long);
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#if defined(_MSC_VER) && !defined(__clang__)
|
||||
_Check_return_ long long __cdecl llabs(_In_ long long _j);
|
||||
#pragma function(llabs)
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue