summaryrefslogtreecommitdiff
path: root/win32/win32.h
diff options
context:
space:
mode:
authorGreg Matheson <lang@ms.chinmin.edu.tw>2003-10-30 22:11:58 +0800
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-11-02 17:25:50 +0000
commit15689010d82050a2c02fc94ccd5d5d748e306cd0 (patch)
tree741283c81cee90fcabc40125c8248f327ba5426a /win32/win32.h
parenta177e38d770b4b5d49ef8808413f901616f208a9 (diff)
downloadperl-15689010d82050a2c02fc94ccd5d5d748e306cd0.tar.gz
Portability nit for MinGW 3.
Subject: MinGW-3.1.0-1 _CRTIMP definition preempting win32.h's Message-ID: <20031030141158.A11772@ms> (actual patch by Abe Timmerman) p4raw-id: //depot/perl@21617
Diffstat (limited to 'win32/win32.h')
-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