apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko ─îibej <br...@xbc.nu>
Subject Re: setting timestamps
Date Tue, 08 Jul 2003 21:59:37 GMT
Cliff Woolley wrote:

>On Tue, 8 Jul 2003, [UTF-8] Branko ?^Libej wrote:
>
>  
>
>>on those defines, giving utimes (which has the more precise interface)
>>priority; e.g.,
>>
>>    #if HAVE_UTIMES
>>    ...use utimes...
>>    #elif HAVE_UTIME
>>    
>>
>
>IIRC, that should be:
>
>#ifdef HAVE_UTIMES
>...use utimes...
>#elif defined(HAVE_UTIME)
>
>It would be #if if it were an APR_HAVE_ macro, which are defined always
>but have a value of zero or one depending.  The ones that comes straight
>out of autoconf are either defined or not.
>
And a symbol that's not defined is treated as if it were zero by the C
preprocessor. So it comes to the same thing in the end. :-)

-- 
Brane ─îibej   <brane@xbc.nu>   http://www.xbc.nu/brane/


Mime
View raw message