Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Direct contributions:
- npc_vehicledriver fixes provided by CrAzY
- npc_combine cover behavior patches provided by iohnnyboy
- logic_playmovie icon created by URAKOLOUY5 (This is asset-based and not reflected in the code)
- Dropship APC save/load fix provided by Cvoxulary

== Contributions from samisalreadytaken:
=-- https://github.com/mapbase-source/source-sdk-2013/pull/47 (VScript utility/consistency changes)
Expand Down
59 changes: 59 additions & 0 deletions mp/src/devtools/gcc9+support.cpp
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
Loading