Add missing #include

This commit is contained in:
Eric Fischer 2017-08-29 14:49:24 -07:00
parent 1581b79a3e
commit 0d56d1bf38
3 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <map>
#include "mvt.hpp"
#include "evaluator.hpp"

View File

@ -77,12 +77,12 @@ static ssize_t read_string(json_pull *j, char *buffer, size_t n) {
out++;
}
j->source = cp + out;
j->source = (void *) (cp + out);
return out;
}
json_pull *json_begin_string(const char *s) {
return json_begin(read_string, s);
return json_begin(read_string, (void *) s);
}
void json_end(json_pull *p) {

View File

@ -46,7 +46,7 @@ typedef struct json_pull {
int line;
ssize_t (*read)(struct json_pull *, char *buf, size_t n);
const void *source;
void *source;
char *buffer;
ssize_t buffer_tail;
ssize_t buffer_head;