Changeset 14032


Ignore:
Timestamp:
02/09/12 00:14:24 (11 years ago)
Author:
nit
Message:

add grab source

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/grab/readpng.c

    r4899 r14032  
    5656#include <stdio.h>
    5757#include <stdlib.h>
     58#include <zlib.h>
    5859
    5960#include "png.h"        /* libpng header; includes zlib.h */
     
    6263/* future versions of libpng will provide this macro: */
    6364#ifndef png_jmpbuf
     65#if (PNG_LIBPNG_VER < 10500)
    6466#  define png_jmpbuf(png_ptr)   ((png_ptr)->jmpbuf)
     67#else
     68#  define png_jmpbuf(png_jmpbuf)   ((png_jmpbuf)->png_ptr)
    6569#endif
    66 
     70#endif
    6771
    6872static png_structp png_ptr = NULL;
Note: See TracChangeset for help on using the changeset viewer.