diff --git a/boot/freeldr/freeldr/freeldr.c b/boot/freeldr/freeldr/freeldr.c index c31f5eab3a2..16af2375097 100644 --- a/boot/freeldr/freeldr/freeldr.c +++ b/boot/freeldr/freeldr/freeldr.c @@ -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; +}