From: Greg Matheson Date: Thu, 30 Oct 2003 14:11:58 +0000 (+0800) Subject: Portability nit for MinGW 3. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=15689010d82050a2c02fc94ccd5d5d748e306cd0;p=p5sagit%2Fp5-mst-13.2.git 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 --- diff --git a/win32/win32.h b/win32/win32.h index f4102c3..d2e1436 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