mirror of
https://github.com/panda3d/panda3d.git
synced 2026-05-13 01:58:27 -05:00
cmath: Fix compilation error on macOS with sincos
This commit is contained in:
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user