Move wxHAS_SVG definition to wx/features.h

This is more consistent with the other wxHAS_XXXs and makes it possible
to only include wx/bmpbndl.h in bmpsvg.cpp if SVG support is indeed
available.
This commit is contained in:
Vadim Zeitlin
2021-12-02 15:25:06 +01:00
parent bbca67df67
commit 882a339a48
3 changed files with 10 additions and 9 deletions

View File

@@ -95,6 +95,15 @@
#define wxHAVE_RAW_BITMAP
#endif
/*
While it should be possible to implement SVG rasterizing without raw bitmap
support using wxDC::DrawSpline(), currently we don't do it and so FromSVG()
is only available in the ports providing raw bitmap access.
*/
#ifdef wxHAS_RAW_BITMAP
#define wxHAS_SVG
#endif
// Previously this symbol wasn't defined for all compilers as Bind() couldn't
// be implemented for some of them (notably MSVC 6), but this is not the case