Use wxHAS_IMAGES_IN_RESOURCES instead of explicit platform checks.

Add a special symbol which is defined only if the icons and other images (e.g.
cursor) are in the separate resource files and don't need to be embedded as
XPMs in the main program.

This makes the checks more clear and more customizable as it's enough to
change wxHAS_IMAGES_IN_RESOURCES definition instead of changing many platform
checks.

Closes #14050.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-03-04 00:28:58 +00:00
parent b303fca714
commit e709239889
84 changed files with 92 additions and 87 deletions

View File

@@ -22,7 +22,7 @@
#include "wx/log.h"
#include "wx/tglbtn.h"
#ifndef __WXMSW__
#ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm"
#endif