mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Add missing #include
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include "mvt.hpp"
|
#include "mvt.hpp"
|
||||||
#include "evaluator.hpp"
|
#include "evaluator.hpp"
|
||||||
|
|||||||
+2
-2
@@ -77,12 +77,12 @@ static ssize_t read_string(json_pull *j, char *buffer, size_t n) {
|
|||||||
out++;
|
out++;
|
||||||
}
|
}
|
||||||
|
|
||||||
j->source = cp + out;
|
j->source = (void *) (cp + out);
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
json_pull *json_begin_string(const char *s) {
|
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) {
|
void json_end(json_pull *p) {
|
||||||
|
|||||||
+1
-1
@@ -46,7 +46,7 @@ typedef struct json_pull {
|
|||||||
int line;
|
int line;
|
||||||
|
|
||||||
ssize_t (*read)(struct json_pull *, char *buf, size_t n);
|
ssize_t (*read)(struct json_pull *, char *buf, size_t n);
|
||||||
const void *source;
|
void *source;
|
||||||
char *buffer;
|
char *buffer;
|
||||||
ssize_t buffer_tail;
|
ssize_t buffer_tail;
|
||||||
ssize_t buffer_head;
|
ssize_t buffer_head;
|
||||||
|
|||||||
Reference in New Issue
Block a user