sdl12-compat: don't use SDL2 math functions in Watcom builds.

From ae832dd4b107351667f5069fb3871df329818fa0 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 30 Apr 2021 14:01:10 +0300
Subject: [PATCH] don't use SDL2 math functions in Watcom builds.

---
 src/SDL20_syms.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/SDL20_syms.h b/src/SDL20_syms.h
index b05ea70..208a0bf 100644
--- a/src/SDL20_syms.h
+++ b/src/SDL20_syms.h
@@ -275,8 +275,14 @@ SDL20_SYM_PASSTHROUGH(size_t,iconv,(SDL_iconv_t a, const char **b, size_t *c, ch
 SDL20_SYM_PASSTHROUGH(char *,iconv_string,(const char *a, const char *b, const char *c, size_t d),(a,b,c,d),return)
 SDL20_SYM(int,setenv,(const char *a, const char *b, int c),(a,b,c),return)
 SDL20_SYM(int,atoi,(const char *a),(a),return)
+#ifdef __WATCOMC__ /* Watcom builds are broken with SDL math functions. */
+#include <math.h>
+#define SDL20_fabsf fabs
+#define SDL20_floorf floor
+#else
 SDL20_SYM(float,fabsf,(float a),(a),return)
 SDL20_SYM(float,floorf,(float a),(a),return)
+#endif
 
 SDL20_SYM(SDL_Renderer *,CreateRenderer,(SDL_Window *a, int b, Uint32 c),(a,b,c),return)
 SDL20_SYM(int,GetRendererInfo,(SDL_Renderer *a, SDL_RendererInfo *b),(a,b),return)