From dd647298acfefbae47322d3ac62ed99d85697163 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 19 Feb 2021 06:25:24 +0300
Subject: [PATCH] undefine strtod (and also strcasecmp, strncasecmp, snprintf,
vsnprintf)
mingw headers may define them ...
---
src/SDL12_compat.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index 0ea9cd8..391857c 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -40,6 +40,13 @@
#include <stdarg.h>
#include <stdio.h> /* fprintf(), etc. */
+/* mingw headers may define these ... */
+#undef strtod
+#undef strcasecmp
+#undef strncasecmp
+#undef snprintf
+#undef vsnprintf
+
// !!! IMPLEMENT_ME SDL_CDClose
// !!! IMPLEMENT_ME SDL_CDEject
// !!! IMPLEMENT_ME SDL_CDName