From: Stefan Fritsch Date: Tue, 18 Jan 2011 21:42:23 +0000 (+0000) Subject: Fix some warnings with Visual Studio reported by Gregg L. Smith X-Git-Tag: 2.3.11~166 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=10e4ecc06c0585f7e7b6ad6d8b2a5ce24ec12ac1;p=thirdparty%2Fapache%2Fhttpd.git Fix some warnings with Visual Studio reported by Gregg L. Smith git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1060588 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util_expr_private.h b/server/util_expr_private.h index b2ae84c2145..4e229c66417 100644 --- a/server/util_expr_private.h +++ b/server/util_expr_private.h @@ -34,6 +34,12 @@ #define YY_NO_UNISTD_H #endif +#ifdef _MSC_VER +/* Avoid some warnings with Visual Studio (likely due to a bug in bison) */ +#define YYMALLOC malloc +#define YYFREE free +#endif + #ifndef YYDEBUG #define YYDEBUG 0 #endif