Subject: Re: CVS commit: syssrc/sys/dev/cardbus
To: enami tsugutomo <enami@but-b.or.jp>
From: Simon Burge <simonb@wasabisystems.com>
List: source-changes
Date: 11/23/2001 12:02:20
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>
NetBSD CDs, Support and Service:    http://www.wasabisystems.com/