mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 19:43:31 +08:00
[CRT] Add simplistic fallback implementation of sincos to make GCC 11 happy
This commit is contained in:
parent
28c41b7d22
commit
dacbc603b6
@ -6,6 +6,7 @@ list(APPEND LIBCNTPR_MATH_SOURCE
|
||||
math/abs.c
|
||||
math/div.c
|
||||
math/labs.c
|
||||
math/sincos.c
|
||||
)
|
||||
|
||||
if(ARCH STREQUAL "i386")
|
||||
|
15
sdk/lib/crt/math/sincos.c
Normal file
15
sdk/lib/crt/math/sincos.c
Normal file
@ -0,0 +1,15 @@
|
||||
/*
|
||||
* PROJECT: ReactOS CRT library
|
||||
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
||||
* PURPOSE: Fallback implementation of sincos
|
||||
* COPYRIGHT: Copyright 2022 Timo Kreuzer <timo.kreuzer@reactos.org>
|
||||
*/
|
||||
|
||||
#include <math.h>
|
||||
|
||||
// This is a very simplistic implementation to make GCC 11 happy
|
||||
void sincos(double x, double *s, double *c)
|
||||
{
|
||||
*s = sin(x);
|
||||
*c = cos(x);
|
||||
}
|
@ -3,6 +3,7 @@ include_directories(include/internal/mingw-w64)
|
||||
|
||||
list(APPEND MSVCRTEX_SOURCE
|
||||
${CRT_STARTUP_SOURCE}
|
||||
math/sincos.c
|
||||
misc/dbgrpt.cpp
|
||||
misc/fltused.c
|
||||
misc/isblank.c
|
||||
|
Loading…
Reference in New Issue
Block a user