diff options
| author | Manolo Gouy <Manolo> | 2017-09-09 15:47:04 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-09-09 15:47:04 +0000 |
| commit | a0e7cbfa576ffaf92a45848f279b8ca74f4dd4f4 (patch) | |
| tree | 1ceccfc8c6b51a37a6eda340dc0535efd569f27f /src | |
| parent | a03f8490e68326796868b0ceb9e62c534ec80c67 (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_SVG_Image.cxx | 12 |
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" |
