From 6c885849d296ed79cd71c1351853b80131ac0234 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sat, 29 Jul 2017 07:00:50 +0000 Subject: [PATCH] in_sdl.c: OW1.9 doesn't have powf() and sqrtf(). use pow/sqrt, instead. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1458 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/in_sdl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Quake/in_sdl.c b/Quake/in_sdl.c index 6ab79ee5..b63149c9 100644 --- a/Quake/in_sdl.c +++ b/Quake/in_sdl.c @@ -416,6 +416,11 @@ static joyaxisstate_t joy_axisstate; static double joy_buttontimer[SDL_CONTROLLER_BUTTON_MAX]; static double joy_emulatedkeytimer[10]; +#ifdef __WATCOMC__ /* OW1.9 doesn't have powf() / sqrtf() */ +#define powf pow +#define sqrtf sqrt +#endif + /* ================ IN_AxisMagnitude