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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user