This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Portability nit for MinGW 3.
authorGreg Matheson <lang@ms.chinmin.edu.tw>
Thu, 30 Oct 2003 14:11:58 +0000 (22:11 +0800)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Sun, 2 Nov 2003 17:25:50 +0000 (17:25 +0000)
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

win32/win32.h

index f4102c3..d2e1436 100644 (file)
@@ -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