summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_SVG_Image.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/Fl_SVG_Image.cxx b/src/Fl_SVG_Image.cxx
index 04a4d455e..91be0c70d 100644
--- a/src/Fl_SVG_Image.cxx
+++ b/src/Fl_SVG_Image.cxx
@@ -25,17 +25,15 @@
#include <stdio.h>
#include <stdlib.h>
-#ifdef HAVE_LONG_LONG
- typedef long long fl_nsvg_int;
-#else
- typedef long fl_nsvg_int;
-# define strtoll(a, b, c) strtol(a, b, c)
+#if !defined(HAVE_LONG_LONG)
+static double strtoll(const char *str, char **endptr, int base) {
+ return (double)strtol(str, endptr, base);
+}
#endif
-
#define NANOSVG_ALL_COLOR_KEYWORDS // Include full list of color keywords.
#define NANOSVG_IMPLEMENTATION // Expands implementation
-#include "../nanosvg/fl_nanosvg.h"
+#include "../nanosvg/nanosvg.h"
#define NANOSVGRAST_IMPLEMENTATION // Expands implementation
#include "../nanosvg/altsvgrast.h"