X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a626cc03053700ca5bdbf0243831bec528e6fc4d..721a4a08bce5245dd748a9f4c64c5d25a02e8155:/src/png/pngrtran.c diff --git a/src/png/pngrtran.c b/src/png/pngrtran.c index ce486bd06d..489554c7e4 100644 --- a/src/png/pngrtran.c +++ b/src/png/pngrtran.c @@ -16,6 +16,15 @@ #define PNG_INTERNAL #include "png.h" +#if defined(_MSC_VER) && !defined(__MWERKS__) +#define __VISUALC__ _MSC_VER +#endif +#ifdef __VISUALC__ +#ifndef WIN32 +#pragma warning(disable:4135) +#endif +#endif + /* Set the action on getting a CRC error for an ancillary or critical chunk. */ void png_set_crc_action(png_structp png_ptr, int crit_action, int ancil_action)