summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--win32/win32.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/win32/win32.h b/win32/win32.h
index f4102c3c64..d2e143624e 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -465,6 +465,9 @@ DllExport int win32_async_check(pTHX);
#ifdef PERL_CORE
/* C doesn't like repeat struct definitions */
+#if defined(__MINGW32__) && (__MINGW32_MAJOR_VERSION>=3D3)
+#undef _CRTIMP
+#endif
#ifndef _CRTIMP
#define _CRTIMP __declspec(dllimport)
#endif