[EMAIL PROTECTED] (Larry Jones) writes:

> Hrvoje Niksic writes:
>> 
>> I suppose we should then use:
>> 
>> #ifdef _POSIX_TIMERS
>> # if _POSIX_TIMERS > 0
>
> The usual solution to this problem is:
>
>       #if _POSIX_TIMERS - 0 > 0

Neat trick, thanks.

> That gets the right answer regardless of whether _POSIX_TIMERS is
> undefined, defined as nothing, or defined as a number.

I guess the "defined as nothing" case was losing.  BTW does the above
trick work with K&R preprocessors?

Reply via email to