Avoid -Wundef warning when libpng support is disabled
This commit is contained in:
@@ -41,8 +41,8 @@
|
|||||||
// By default, use PNG resource handler if we can, i.e. have support for
|
// By default, use PNG resource handler if we can, i.e. have support for
|
||||||
// loading PNG images in the library. This symbol could be predefined as 0 to
|
// loading PNG images in the library. This symbol could be predefined as 0 to
|
||||||
// avoid doing this if anybody ever needs to do it for some reason.
|
// avoid doing this if anybody ever needs to do it for some reason.
|
||||||
#if !defined(wxUSE_PNG_RESOURCE_HANDLER) && wxUSE_LIBPNG && wxUSE_IMAGE
|
#if !defined(wxUSE_PNG_RESOURCE_HANDLER)
|
||||||
#define wxUSE_PNG_RESOURCE_HANDLER 1
|
#define wxUSE_PNG_RESOURCE_HANDLER wxUSE_LIBPNG && wxUSE_IMAGE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxUSE_PNG_RESOURCE_HANDLER
|
#if wxUSE_PNG_RESOURCE_HANDLER
|
||||||
|
Reference in New Issue
Block a user