You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sf...@apache.org on 2011/01/18 22:42:23 UTC
svn commit: r1060588 - /httpd/httpd/trunk/server/util_expr_private.h
Author: sf
Date: Tue Jan 18 21:42:23 2011
New Revision: 1060588
URL: http://svn.apache.org/viewvc?rev=1060588&view=rev
Log:
Fix some warnings with Visual Studio reported by Gregg L. Smith
Modified:
httpd/httpd/trunk/server/util_expr_private.h
Modified: httpd/httpd/trunk/server/util_expr_private.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util_expr_private.h?rev=1060588&r1=1060587&r2=1060588&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util_expr_private.h (original)
+++ httpd/httpd/trunk/server/util_expr_private.h Tue Jan 18 21:42:23 2011
@@ -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