Hi Thomas, I think your understanding is correct :

"#ifdef <undefined switch>"

or

"#if  defined(<undefined switch>)"

Are ok while

"#if <undefined switch>"

 or

"#elif <undefined switch>"

Lead to the compile error on gcc with current warnings.

Best regards, Matthias


> >>
> > This looks okay to me although I could imagine this issue coming back again
> > with ongoing edits that add "ifdef __solaris" or similar.
> >
> 
> If I understand this problem correctly (and I might not) the problem
> is with "#if <undefined switch>", not with "#ifdef <undefined
> switch>".
> 
> ..thomas
> 
> > -Alan

Reply via email to