Source-Changes archive

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

Re: CVS commit: syssrc/sys/dev/cardbus



enami tsugutomo wrote:

> btw, the test:
> 
>       defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
> 
> is borrowed from assert.h but I noticed that the other part of cdefs.h
> uses just this test:
> 
>       __STDC_VERSION__ >= 199901L
> 
> I guess latter fails on a compiler which doesn't define
> __STDC_VERSION__ at all.

I think the preprocessor uses a value of "0" for any macro that isn't
defined, so this is a legal test even if __STDC_VERSION__ isn't defined.

Simon.
--
Simon Burge                            <simonb%wasabisystems.com@localhost>
NetBSD CDs, Support and Service:    http://www.wasabisystems.com/



Home | Main Index | Thread Index | Old Index