From a0e7cbfa576ffaf92a45848f279b8ca74f4dd4f4 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 9 Sep 2017 15:47:04 +0000 Subject: Fix nanosvg implementation of nsvg__atof() to allow compilation with Visual Studio 7. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12435 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_SVG_Image.cxx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src') 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 #include -#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" -- cgit v1.2.3