From bdf905d661cd3cd61fb2dbaa5ddd9e641f421ffb Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Fri, 6 Dec 2019 14:48:11 +0100 Subject: [PATCH] msvcrt: Provide exp2 in importlib. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/msvcrt/mathf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/msvcrt/mathf.c b/dlls/msvcrt/mathf.c index 9f27e641222..4aff6d70086 100644 --- a/dlls/msvcrt/mathf.c +++ b/dlls/msvcrt/mathf.c @@ -37,3 +37,7 @@ float sqrtf(float x) { return sqrt(x); } float floorf(float x) { return floor(x); } float ceilf(float x) { return ceil(x); } #endif + +#if _MSVCR_VER < 120 +double exp2(double x) { return pow(2.0, x); } +#endif