forked from mapbase-source/source-sdk-2013
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mapbase-source#21 from z33ky/mapbase/gcc-linux
gcc/Linux fixes
- Loading branch information
Showing
68 changed files
with
1,535 additions
and
865 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// compatibility with old ABI | ||
#if __GNUC__ >= 9 | ||
#include <cmath> | ||
|
||
extern "C" double __pow_finite(double a, double b) | ||
{ | ||
return pow(a, b); | ||
} | ||
|
||
extern "C" double __log_finite(double a) | ||
{ | ||
return log(a); | ||
} | ||
|
||
extern "C" double __exp_finite(double a) | ||
{ | ||
return exp(a); | ||
} | ||
|
||
extern "C" double __atan2_finite(double a, double b) | ||
{ | ||
return atan2(a, b); | ||
} | ||
|
||
extern "C" double __atan2f_finite(double a, double b) | ||
{ | ||
return atan2f(a, b); | ||
} | ||
|
||
extern "C" float __powf_finite(float a, float b) | ||
{ | ||
return powf(a, b); | ||
} | ||
|
||
extern "C" float __logf_finite(float a) | ||
{ | ||
return logf(a); | ||
} | ||
|
||
extern "C" float __expf_finite(float a) | ||
{ | ||
return expf(a); | ||
} | ||
|
||
extern "C" float __acosf_finite(float a) | ||
{ | ||
return acosf(a); | ||
} | ||
|
||
extern "C" double __asin_finite(double a) | ||
{ | ||
return asin(a); | ||
} | ||
|
||
extern "C" double __acos_finite(double a) | ||
{ | ||
return acos(a); | ||
} | ||
#endif |
Oops, something went wrong.