Re: [EXTERNAL] Is defined() macro portable or GNU only?

"Curry, Matthew Leon" <[email protected]> Wed, 30 Sep 2015 21:27:46 +0000
Newsgroups org.kernel.vger.linux-c-programming
Message-ID <D231AF64.FCEF%[email protected]>
It=B9s part of ANSI C, and is described in K&R.

Matthew

On 9/30/15, 1:25 PM, "[email protected] on beha=
lf
of Daniel." <[email protected] on behalf of
[email protected]> wrote:

>Hi all,
>
>I used to check definitions with #ifdef, but in cases where
>multiple macros are checked I use #if defined(foo) && defined(bar).
>Is this defined() check portable/standard? Or is some kind of
>extension added by GCC?
>
>Regards,
>- dhs
>--=20
>"Do or do not. There is no try"
>  Yoda Master
>--
>To unsubscribe from this list: send the line "unsubscribe
>linux-c-programming" in
>the body of a message to [email protected]
>More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-c-progr=
amming" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html