apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: Miscellaneous newbie issues
Date Wed, 01 Dec 2004 11:30:16 GMT
On Tue, Nov 30, 2004 at 07:39:11PM -0600, Curt Arnold wrote:
> 2. APR_INT64_C not resolved for g++
> 
> The following code will fail to compile with g++ 3.3.3 on Linux and Mac 
> OS/X (but will compile with Microsoft CL and gcc)
> 
> #include <apr.h>
> int main(int argc, char** argv) {
> apr_int64_t foo = APR_INT64_C(1000);
> }
> 
> with an "INT64_C undeclared (first use this function)" error.  I assume 

Thanks for the report, I've checked in a fix - an alternative workaround
is to define __STDC_CONSTANT_MACROS before including apr.h (e.g. in
CPPFLAGS).  http://svn.apache.org/viewcvs?view=rev&rev=109326

> 3. Dates earlier than 1 Jan 1970 have negative microseconds when 
> exploded.

Can you file a bug on that if nobody else follows up?

joe

Mime
View raw message