develooper Front page | perl.perl5.porters | Postings from November 2003

Re: MinGW-3.1.0-1 _CRTIMP definition preempting win32.h's

Thread Previous | Thread Next
From:
Abe Timmerman
Date:
November 2, 2003 03:43
Subject:
Re: MinGW-3.1.0-1 _CRTIMP definition preempting win32.h's
Message ID:
200311021240.05922.abe@ztreet.demon.nl
Op een wisselvallige herfstdag (Saturday 01 November 2003 23:02), schreef 
Rafael Garcia-Suarez:

> Greg Matheson wrote:
> > Recent perls are building for me on Windows 98 with the older
> > MinGW-2.0.0-3, but with the new MinGW-3.1.0-1, _pioinfo,
> > imported by win32.h is not being declared as dllimport
> >
> > This is due to the _CRTIMP definition in _mingw.h being pulled in
> > before win32.h's definition, according to Danny Smith on the
> > mingw-users list.
> >
> > See a discussion starting here:
> > https://sourceforge.net/forum/message.php?msg_id=2253759
> >
> > With this workaround,
> >
> > greg@7106 ~
> > $ diff perl-5.8.2-RC1/win32/win32.h perl-5.8.2-RC1/win32/win32.h~
> > 505c505
> > < extern __declspec(dllimport) ioinfo * __pioinfo[];
> > ---
> >
> > > EXTERN_C _CRTIMP ioinfo* __pioinfo[];
> >
> > I was able to build perl-5.8.2-RC1 and perl-5.9.0 on Windows 98.
>
> Thanks for the report, but unfortunately I can't integrate it as-is,
> to avoid breaking other environments. What are the C preprocessor
> symbols that I can check to know whether one is using MinGW 3 or greater
> (assuming your patch is needed for MinGW >= 3.0.0 ?)


	#if defined(__MINGW32__) && (__MINGW32_MAJOR_VERSION>=3)


Good luck,

Abe
-- 
Schwern> Just to appease the pedants I'll actually include a patch 
Schwern> with this email that says "PATCH".

Such attention to detail :-)
                                   -- Jarkko Hietaniemi on p5p @ 2003-04-07


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About