aboutsummaryrefslogtreecommitdiff
path: root/test/cxxtest_mingw.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/cxxtest_mingw.h')
-rw-r--r--test/cxxtest_mingw.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/cxxtest_mingw.h b/test/cxxtest_mingw.h
new file mode 100644
index 0000000000..f407105bfe
--- /dev/null
+++ b/test/cxxtest_mingw.h
@@ -0,0 +1,11 @@
+
+#ifndef CXXTEST_MINGW
+#define CXXTEST_MINGW
+
+// HACK to allow building with the SDL backend on MinGW
+// see bug #1800764 "TOOLS: MinGW tools building broken"
+#ifdef main
+#undef main
+#endif // main
+
+#endif // CXXTEST_MINGW \ No newline at end of file