[CRT] Add simplistic fallback implementation of sincos to make GCC 11 happy

This commit is contained in:
Timo Kreuzer 2022-06-25 12:27:39 +02:00
parent 28c41b7d22
commit dacbc603b6
3 changed files with 17 additions and 0 deletions

View File

@ -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
View 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);
}

View File

@ -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