summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/red_gdi_canvas.cpp3
-rw-r--r--common/gdi_canvas.c3
-rw-r--r--common/sw_canvas.c3
3 files changed, 9 insertions, 0 deletions
diff --git a/client/red_gdi_canvas.cpp b/client/red_gdi_canvas.cpp
index ed091af1..6ac2e8a6 100644
--- a/client/red_gdi_canvas.cpp
+++ b/client/red_gdi_canvas.cpp
@@ -15,6 +15,9 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_CONFIG_H
+#ifdef __MINGW32__
+#undef HAVE_STDLIB_H
+#endif
#include <config.h>
#endif
diff --git a/common/gdi_canvas.c b/common/gdi_canvas.c
index f67aadf5..64fbbf5c 100644
--- a/common/gdi_canvas.c
+++ b/common/gdi_canvas.c
@@ -16,6 +16,9 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_CONFIG_H
+#ifdef __MINGW32__
+#undef HAVE_STDLIB_H
+#endif
#include <config.h>
#endif
diff --git a/common/sw_canvas.c b/common/sw_canvas.c
index 651c52bc..0f67c808 100644
--- a/common/sw_canvas.c
+++ b/common/sw_canvas.c
@@ -16,6 +16,9 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_CONFIG_H
+#ifdef __MINGW32__
+#undef HAVE_STDLIB_H
+#endif
#include <config.h>
#endif