portability fixes - ploot - simple plotting tools | |
git clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit f57e3eaca390e814349d3f6bcafde07b82041217 | |
parent 7dad2b0d2e8a560efbe5d38164a63f999b3a23f9 | |
Author: Josuah Demangeon <[email protected]> | |
Date: Mon, 24 Feb 2020 13:46:27 +0100 | |
portability fixes | |
Diffstat: | |
M ploot-braille.c | 2 -- | |
M src/csv.c | 1 + | |
M src/csv.h | 1 + | |
M src/ffplot.c | 1 + | |
M src/ffplot.h | 1 + | |
5 files changed, 4 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/ploot-braille.c b/ploot-braille.c | |
@@ -106,12 +106,10 @@ braille_render(struct drawille *drw, FILE *fp, double vmi… | |
static void | |
plot(struct csv *vl, FILE *fp, size_t ncol, int row, int col) | |
{ | |
- size_t len; | |
double vmin, vmax, vstep; | |
time_t tmin, tmax, tstep; | |
struct drawille *drw; | |
- len = 500; | |
col -= 8; | |
scale(vl, ncol, &tmin, &tmax, &tstep, &vmin, &vmax, &vstep); | |
diff --git a/src/csv.c b/src/csv.c | |
@@ -6,6 +6,7 @@ | |
#include <time.h> | |
#include <stdlib.h> | |
#include <limits.h> | |
+#include <time.h> | |
#include "log.h" | |
#include "tool.h" | |
diff --git a/src/csv.h b/src/csv.h | |
@@ -2,6 +2,7 @@ | |
#define CSV_H | |
#include <stdio.h> | |
+#include <time.h> | |
/* | |
* List of values and timestamps. Both have their dedicated buffer | |
diff --git a/src/ffplot.c b/src/ffplot.c | |
@@ -4,6 +4,7 @@ | |
#include <stddef.h> | |
#include <string.h> | |
#include <stdio.h> | |
+#include <stdint.h> | |
#include "font.h" | |
#include "tool.h" | |
diff --git a/src/ffplot.h b/src/ffplot.h | |
@@ -3,6 +3,7 @@ | |
#include <stdio.h> | |
#include <stddef.h> | |
+#include <stdint.h> | |
#include "font.h" | |