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

Re: Which platforms need symbols to export to be explicitly listed?

Thread Previous
From:
Stas Bekman
Date:
July 30, 2003 11:06
Subject:
Re: Which platforms need symbols to export to be explicitly listed?
Message ID:
3F2808AE.4090001@stason.org
Steve Hay wrote:
> Steve Hay wrote:
> 
>> So, something more like this, then:
>>
>> #if PERL_REVISION == 5 && \
>>    (PERL_VERSION == 8 && PERL_SUBVERSION == 0  && \
>>        !(defined(WIN32) || defined(NETWARE) || defined(OS2) || \
>>          defined(_AIX) || defined(MACOS_TRADITIONAL) || defined(VMS))) 
>> || \
>>    (PERL_VERSION == 8 && PERL_SUBVERSION >= 1) || \
>>    (PERL_VERSION >= 9)
>> #define _HAVE_ISUTF8
>> #endif
> 
> 
> Oops!  Missed one set of brackets.  That should have been:
> 
> #if PERL_REVISION == 5 && \
>   ((PERL_VERSION == 8 && PERL_SUBVERSION == 0  && \
>        !(defined(WIN32) || defined(NETWARE) || defined(OS2) || \
>          defined(_AIX) || defined(MACOS_TRADITIONAL) || defined(VMS))) || \
>    (PERL_VERSION == 8 && PERL_SUBVERSION >= 1) || \
>    (PERL_VERSION >= 9))
> #define _HAVE_ISUTF8
> #endif

I'd say !( $] < 5.8.x || ( $] == 5.8.0 && defined(@os) ) ), which doesn't 
require any future knowledge. but yours looks fine as well.



__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Thread Previous


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