Simplify code using plain atof() instead of implementing function nsvg__atof().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12430 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
457fb7c0b2
commit
a222837123
@ -23,15 +23,13 @@
|
||||
#include <FL/Fl_SVG_Image.H>
|
||||
#include <FL/fl_utf8.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#if HAVE_LOCALE_H
|
||||
#include <locale.h>
|
||||
#endif
|
||||
|
||||
static double nsvg__atof(const char* s) { // replace nanosvg's version of this function
|
||||
double value;
|
||||
sscanf(s, "%lg", &value);
|
||||
return value;
|
||||
}
|
||||
// the C locale is set in init_() before calling nsvgParse(), therefore plain atof() can be used
|
||||
#define nsvg__atof(s) atof(s)
|
||||
|
||||
#define NANOSVG_ALL_COLOR_KEYWORDS // Include full list of color keywords.
|
||||
#define NANOSVG_IMPLEMENTATION // Expands implementation
|
||||
|
Loading…
x
Reference in New Issue
Block a user