summaryrefslogtreecommitdiff
path: root/src/Fl_SVG_Image.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2024-03-18 18:15:06 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2024-03-18 19:36:16 +0100
commit1d43ae0b0a01fdd90486c616d5dddd318a8fb9f0 (patch)
tree05f98ee918f8faafc452e6a70068986d4db0e198 /src/Fl_SVG_Image.cxx
parent81d47f71d64caaaed7013b3f494dbae33267e70d (diff)
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.
Diffstat (limited to 'src/Fl_SVG_Image.cxx')
-rw-r--r--src/Fl_SVG_Image.cxx21
1 files changed, 1 insertions, 20 deletions
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 <stdio.h>
#include <stdlib.h>
-#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 <zlib.h>
#endif