Re: availability of "typeof" keyword
From: Arkadiy (vertleyb_at_hotmail.com)
Date: 09/29/05
- Next message: sathyanarayana.singh_at_gmail.com: "Re: Building application using Ospace STL"
- Previous message: Florian Anwander: "Re: Cannot start ksh on HP-UX 11.11 C3600 after installation of patches"
- In reply to: Marty Freitas: "Re: availability of "typeof" keyword"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Sep 2005 01:38:10 -0700
Marty Freitas wrote:
> Arkadiy wrote: not in a
> : How does a user of HP aC++ determines whether the typeof (or
> : __typeof__) keyword is available? Is there any symbol defined that can
> : be tested?
>
> aC++ on PA doesn't support it. But PA HPC does, at least with __HP_cc=111108.
>
> : Is there anything similar in HP aC++?
>
> For aCC6, you can use -Agcc to support it.
> For A.06.05, _HP_GNUC_COMPATIBLE is defined with that option.
So, is it safe to go like this for any version of aC++, regardless of
what command-line options have been supplied:
#ifdef _HP_GNUC_COMPATIBLE
// can use typeof (or __typeof__?)
#else
// no typeof
#endif
Thanks,
Arkadiy
- Next message: sathyanarayana.singh_at_gmail.com: "Re: Building application using Ospace STL"
- Previous message: Florian Anwander: "Re: Cannot start ksh on HP-UX 11.11 C3600 after installation of patches"
- In reply to: Marty Freitas: "Re: availability of "typeof" keyword"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|