micahpearlman / MonkSVG

SVG parsing framework in C++
BSD 3-Clause "New" or "Revised" License
79 stars 19 forks source link

MAXFLOAT is undefined error #32

Open SiPi1 opened 2 years ago

SiPi1 commented 2 years ago

https://github.com/micahpearlman/MonkSVG/blob/f3b7e90e57830057c6e1e35336a0ed7e4f7514c5/include/mkSVG.h#L95

When I try to compile mkSVG.h, Visual Studio says MAXFLOAT is undefined, and I've fixed it by using #include and replacing it with FLT_MAX. Not sure if this is a fix or just a temporary plug, but would like to see it fixed in the repository.