develooper Front page | perl.perl5.porters | Postings from September 2001

macro redefinitions on Win32 (was Re: Question about PERLIO)

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
September 28, 2001 11:28
Subject:
macro redefinitions on Win32 (was Re: Question about PERLIO)
Message ID:
20010928192818.A23673@plum.flirble.org
On Wed, Sep 26, 2001 at 02:12:10AM +0200, Abe Timmerman wrote:
> BTW: I still get lots of these:
> 
> ..\embed.h(2161) : warning C4005: 'sv_2pv' : macro redefinition
>         ..\sv.h(993) : see previous definition of 'sv_2pv'
> ..\embed.h(2178) : warning C4005: 'sv_catpvn' : macro redefinition
>         ..\sv.h(991) : see previous definition of 'sv_catpvn'
> ..\embed.h(2179) : warning C4005: 'sv_catsv' : macro redefinition
>         ..\sv.h(989) : see previous definition of 'sv_catsv'
> ..\embed.h(2212) : warning C4005: 'sv_pvn_force' : macro redefinition
>         ..\sv.h(995) : see previous definition of 'sv_pvn_force'
> ..\embed.h(2231) : warning C4005: 'sv_setsv' : macro redefinition
>         ..\sv.h(987) : see previous definition of 'sv_setsv'
> ..\embed.h(2345) : warning C4005: 'sv_utf8_upgrade' : macro redefinition
>         ..\sv.h(997) : see previous definition of 'sv_utf8_upgrade'

The errors relate to "redefinition" where one definition is inside an
#ifdef CRIPPLED_CC
block and the other definition is inside an
#ifndef CRIPPLED_CC
block?

If so, does anyone have any idea why it seems that (some) Windows compilers
and Tru64(?) don't like this?

Surely the cpp shouldn't react to anything it finds inside unused #if*
blocks, apart from counting #if* and #endif?

And as it seems it is doing something more than it "should" (and am I right
in thinking ANSI says very little about what a cpp should do, and for that
matter there's nothing wrong with issuing diagnostics on legal programs;
the only wrongness is not issuing diagnostics on illegal programs) what
can be done to tweak perl to make it quiet? I'm lost

Nicholas Clark

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