httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guenter Knauf <fua...@apache.org>
Subject Fwd: util_expr_parce.c
Date Sat, 15 Jan 2011 02:05:17 GMT
Forwarded on behalf of Gregg L. Smith (his email bounced 3 times for 
whatever reason).

-------- Original-Nachricht --------

Hi Stefan,

For some reason on Win we are falling through all the if(n)defs and are 
getting these ugly warnings;

util_expr_parse.c(327) : warning C4273: 'malloc' : inconsistent dll linkage
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdlib.h(601) : 
see previous definition of 'malloc'
util_expr_parse.c(334) : warning C4273: 'free' : inconsistent dll linkage
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdlib.h(600) : 
see previous definition of 'free'

stdlib is being included in httpd.h since APR_HAVE_STDLIB_H == 1 in Win.

May I suggest looking for it in util_expr_private.h and define _STDLIB_H 
there or any where/way you prefer.

#if APR_HAVE_STDLIB_H
#define _STDLIB_H
#endif

That rids us of the two ugliest warnings emitted from this parser.

Regards,

Gregg



Mime
View raw message