Add check for integer overflow in odr_write YAZ-816
[yaz-moved-to-github.git] / src / cql.y
index cf85690..ed5735d 100644 (file)
--- a/src/cql.y
+++ b/src/cql.y
 #endif
 #include <stdio.h>
 #include <stdlib.h>
+/* avoid that bison stuff defines malloc/free - already in stdlib.h */
+#ifdef _MSC_VER
+#define _STDLIB_H 1
+#endif
 #include <string.h>
 #include <yaz/yaz-iconv.h>
 #include <yaz/xmalloc.h>