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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It¹s part of ANSI C, and is described in K&R.

Matthew

On 9/30/15, 1:25 PM, "linux-c-programming-owner@xxxxxxxxxxxxxxx on behalf
of Daniel." <linux-c-programming-owner@xxxxxxxxxxxxxxx on behalf of
danielhilst@xxxxxxxxx> 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
>-- 
>"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 majordomo@xxxxxxxxxxxxxxx
>More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux