From 578de69cda62c6248c2f36f4362ff6bdcfddc6fa Mon Sep 17 00:00:00 2001 From: Stefan Ginsberg Date: Fri, 7 Aug 2009 16:40:11 +0000 Subject: [PATCH] - Properly stub atan2/exp/fmod/ldexp for MSVC -- #error out on them instead of calling nonexisting functions to fail at link time (wtf?). svn path=/trunk/; revision=42471 --- reactos/lib/sdk/crt/math/i386/atan2.c | 2 +- reactos/lib/sdk/crt/math/i386/exp.c | 2 +- reactos/lib/sdk/crt/math/i386/fmod.c | 2 +- reactos/lib/sdk/crt/math/i386/ldexp.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/lib/sdk/crt/math/i386/atan2.c b/reactos/lib/sdk/crt/math/i386/atan2.c index 0fc14db4bf6..f6c910a0dd9 100644 --- a/reactos/lib/sdk/crt/math/i386/atan2.c +++ b/reactos/lib/sdk/crt/math/i386/atan2.c @@ -15,7 +15,7 @@ double atan2 (double __y, double __x) "fld %%st(0)" : "=t" (__val) : "0" (__x), "u" (__y)); #else - __val = linkme_atan2(__x, __y); +#error IMPLEMENT ME #endif /*__GNUC__*/ return __val; } diff --git a/reactos/lib/sdk/crt/math/i386/exp.c b/reactos/lib/sdk/crt/math/i386/exp.c index 3a58be07ad8..9baa5709453 100644 --- a/reactos/lib/sdk/crt/math/i386/exp.c +++ b/reactos/lib/sdk/crt/math/i386/exp.c @@ -42,6 +42,6 @@ double exp (double __x) return __value; #else - return linkme_exp(__x); +#error IMPLEMENT ME #endif /*__GNUC__*/ } diff --git a/reactos/lib/sdk/crt/math/i386/fmod.c b/reactos/lib/sdk/crt/math/i386/fmod.c index 7a1f0cef180..b724d48fbe2 100644 --- a/reactos/lib/sdk/crt/math/i386/fmod.c +++ b/reactos/lib/sdk/crt/math/i386/fmod.c @@ -33,7 +33,7 @@ double fmod (double __x, double __y) "jp 1b" : "=t" (__val) : "0" (__x), "u" (__y) : "ax", "cc"); #else - __val = linkme_fmod(__x, __y); +#error IMPLEMENT ME #endif /*__GNUC__*/ return __val; } diff --git a/reactos/lib/sdk/crt/math/i386/ldexp.c b/reactos/lib/sdk/crt/math/i386/ldexp.c index 82175052d33..97046f15a4c 100644 --- a/reactos/lib/sdk/crt/math/i386/ldexp.c +++ b/reactos/lib/sdk/crt/math/i386/ldexp.c @@ -30,7 +30,7 @@ double ldexp (double __x, int __y) ("fscale" : "=t" (__val) : "0" (__x), "u" ((double) __y)); #else - __val = linkme_ldexp(__x, __y); +#error IMPLEMENT ME #endif /*__GNUC__*/ return __val; } -- 2.17.1