Re: [EXTERNAL] Is defined() macro portable or GNU only?
"Daniel." <[email protected]> Thu, 1 Oct 2015 10:11:30 -0300
| Newsgroups | org.kernel.vger.linux-c-programming |
|---|---|
| Message-ID | <CAF3SDA4B=sKK_smuRspwQY6D19XWAgCRn89qWt-vW71y51TBdQ@mail.gmail.com> |
Thank you Matthew! Regards, - dhs 2015-09-30 18:27 GMT-03:00 Curry, Matthew Leon <[email protected]>: > It=C2=B9s part of ANSI C, and is described in K&R. > > Matthew > > On 9/30/15, 1:25 PM, "[email protected] on be= half > 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 >>-- >>"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 > --=20 "Do or do not. There is no try" Yoda Master -- 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