From 7ef2dd1f5f140cc8bd355cb10997dd3393d372cb Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sun, 14 Mar 2021 14:22:24 +0300
Subject: [PATCH] SVG: added note about Watcom builds and SDL math functions.
---
IMG_svg.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/IMG_svg.c b/IMG_svg.c
index 961fd2b..ea67364 100644
--- a/IMG_svg.c
+++ b/IMG_svg.c
@@ -29,6 +29,7 @@
/* Replace C runtime functions with SDL C runtime functions for building on Windows */
#if defined(__WATCOMC__) && defined(HAVE_LIBC)
+ /* With SDL math functions, Watcom builds are very much broken. */
#define acosf(x) (float)acos((double)(x))
#define atan2f(x,y) (float)atan2((double)(x),(double)(y))
#define cosf(x) (float)cos((double)(x))