[FREELDR] Add stubs for pow and log to avoid pulling in the data from CRT (maybe fix printf functions instead?)

This commit is contained in:
Timo Kreuzer 2022-07-10 16:46:04 +03:00
parent 1ad4106b84
commit 20e6e17070

View file

@ -98,3 +98,29 @@ int __cdecl iswctype(wint_t wc, wctype_t wctypeFlags)
{
return _isctype((char)wc, wctypeFlags);
}
#ifdef _MSC_VER
#pragma warning(disable:4164)
#pragma function(pow)
#pragma function(log)
#pragma function(log10)
#endif
// Stubs to avoid pulling in data from CRT
double pow(double x, double y)
{
__debugbreak();
return 0.0;
}
double log(double x)
{
__debugbreak();
return 0.0;
}
double log10(double x)
{
__debugbreak();
return 0.0;
}