mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08:00
[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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user