Add wxHAS_SVG feature test macro

This is more clear and future-proof than using wxHAS_RAW_BITMAP for
checking for SVG availability.
This commit is contained in:
Vadim Zeitlin
2021-10-05 16:12:01 +01:00
parent 0216654272
commit fb4e188cea
6 changed files with 21 additions and 10 deletions

View File

@@ -19,13 +19,14 @@
// for compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifdef wxHAS_RAW_BITMAP
#include "wx/bmpbndl.h"
#ifdef wxHAS_SVG
#ifndef WX_PRECOMP
#include "wx/utils.h" // Only for wxMin()
#endif // WX_PRECOMP
#include "wx/bmpbndl.h"
#include "wx/rawbmp.h"
#include "wx/private/bmpbndl.h"
@@ -180,4 +181,4 @@ wxBitmapBundle wxBitmapBundle::FromSVG(const char* data, const wxSize sizeDef)
return FromSVG(copy.data(), sizeDef);
}
#endif // wxHAS_RAW_BITMAP
#endif // wxHAS_SVG