Hi, >> > if (_DE_ISREG(foo)) { >> > >> > bla >> > >> > } >> > >> > this will just work, always. >> >> No, it will not. If the platform doesn't have dirent.d_type you will get >> compile errors. > > if the macro is defined is 0, why the hell would it matter if dirent even > exist in this case? you could write > > if (_DE_ISREG(whatever is here doesnt matter at all)) { > > and it WILL compile fine, really =) So I'm at least not the only one who didn't get it right away :-) Trying to rephrase it: If the definitions of the macros in question don't make use of the macro argument at all then the compiler won't see the references to d_type as the preprocessor has removed them. Regards, Oliver ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Mon Jun 25 22:06:04 2012
This archive was generated by hypermail 2.1.8 : 2012-06-25 22:06:07 CEST