Avoid -Wundef warning when libpng support is disabled

This commit is contained in:
Paul Cornett
2020-01-26 09:44:17 -08:00
parent 0ec2c9d8f2
commit 2db487c67e

View File

@@ -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