]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix some warnings with Visual Studio reported by Gregg L. Smith
authorStefan Fritsch <sf@apache.org>
Tue, 18 Jan 2011 21:42:23 +0000 (21:42 +0000)
committerStefan Fritsch <sf@apache.org>
Tue, 18 Jan 2011 21:42:23 +0000 (21:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1060588 13f79535-47bb-0310-9956-ffa450edef68

server/util_expr_private.h

index b2ae84c21451c9e04535024f81f9df4cc58c0e18..4e229c66417c3461426cef6d8ae9b6164b10b3a1 100644 (file)
 #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