/* * pngusr.h * Private libpng configuration settings for OptiPNG. * * Copyright (C) 2003-2010 Cosmin Truta. * This software is distributed under the same licensing and warranty terms * as libpng. */ #ifndef PNGUSR_H #define PNGUSR_H /* * Enable the memory leak tracker under MS Visual C++. */ #if defined(_DEBUG) && defined(_MSC_VER) #define _CRTDBG_MAP_ALLOC #include #include #include #endif /* * Remove the libpng features that are not needed by OptiPNG. */ #define PNG_NO_ASSEMBLER_CODE #define PNG_NO_ERROR_NUMBERS #define PNG_NO_FLOATING_POINT_SUPPORTED #define PNG_NO_LEGACY_SUPPORTED #define PNG_NO_MNG_FEATURES #define PNG_NO_PROGRESSIVE_READ #define PNG_NO_SETJMP_SUPPORTED #define PNG_NO_READ_TRANSFORMS #define PNG_NO_WRITE_TRANSFORMS #define PNG_NO_USER_MEM #define PNG_NO_ZALLOC_ZERO #endif /* PNGUSR_H */