mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-26 06:31:48 -04:00
cmath: Fix compilation error on macOS with sincos
This commit is contained in:
parent
c980643649
commit
7dab0df061
@ -64,6 +64,8 @@ csincos(float v, float *sin_result, float *cos_result) {
|
||||
fstp DWORD ptr [edx]
|
||||
fstp DWORD ptr [eax]
|
||||
}
|
||||
#elif defined(__APPLE__)
|
||||
__sincosf(v, sin_result, cos_result);
|
||||
#elif defined(_GNU_SOURCE)
|
||||
sincosf(v, sin_result, cos_result);
|
||||
#else
|
||||
@ -233,6 +235,8 @@ csincos(double v, double *sin_result, double *cos_result) {
|
||||
fstp QWORD ptr [edx]
|
||||
fstp QWORD ptr [eax]
|
||||
}
|
||||
#elif defined(__APPLE__)
|
||||
__sincos(v, sin_result, cos_result);
|
||||
#elif defined(_GNU_SOURCE)
|
||||
sincos(v, sin_result, cos_result);
|
||||
#else //!_X86_
|
||||
|
Loading…
x
Reference in New Issue
Block a user