X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a626cc03053700ca5bdbf0243831bec528e6fc4d..33754c4d83c59b7523a6da0c4fb21079cb60301c:/src/png/pngrtran.c?ds=inline 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)