From 1d43ae0b0a01fdd90486c616d5dddd318a8fb9f0 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Mon, 18 Mar 2024 18:15:06 +0100 Subject: Move nanosvg to a separate file, don't use 'roundf()' (#937) Replacement of roundf() with nsvg__roundf() fixes one aspect of issue #937. Having the nanosvg implementation in its own module was planned anyway. --- src/Fl_SVG_Image.cxx | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'src/Fl_SVG_Image.cxx') diff --git a/src/Fl_SVG_Image.cxx b/src/Fl_SVG_Image.cxx index 3df44ad67..1e3a05d06 100644 --- a/src/Fl_SVG_Image.cxx +++ b/src/Fl_SVG_Image.cxx @@ -1,7 +1,7 @@ // // SVG image code for the Fast Light Tool Kit (FLTK). // -// Copyright 2017-2022 by Bill Spitzak and others. +// Copyright 2017-2024 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -28,28 +28,9 @@ #include #include -#if !defined(HAVE_LONG_LONG) -static double strtoll(const char *str, char **endptr, int base) { - return (double)strtol(str, endptr, base); -} -#endif - -#ifdef _MSC_VER -#pragma warning (push) // Save #pragma warning status -#pragma warning (disable: 4244) // Switch off conversion warnings -#endif - -#define NANOSVG_ALL_COLOR_KEYWORDS // Include full list of color keywords. -#define NANOSVG_IMPLEMENTATION // Expands implementation #include "../nanosvg/nanosvg.h" - -#define NANOSVGRAST_IMPLEMENTATION // Expands implementation #include "../nanosvg/nanosvgrast.h" -#ifdef _MSC_VER -#pragma warning (pop) // Restore #pragma warning status -#endif - #if defined(HAVE_LIBZ) #include #endif -- cgit v1.2.3