Skip to content

Commit

Permalink
Add missing zlib.h for libpng15.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/celestia/code/trunk/celestia@5204 10d76133-bd44-0410-b00f-95d021917061
  • Loading branch information
ajtribick committed May 1, 2012
1 parent c0339ee commit 53926cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/celestia/imagecapture.cpp
Expand Up @@ -36,11 +36,14 @@ extern "C" {
#define png_jmpbuf(png_ptr) png_ptr->jmpbuf
#endif

// Define various expansion transformations for old versions of libpng
#if PNG_LIBPNG_VER < 10004
// Define various expansion transformations for old versions of libpng
#define png_set_palette_to_rgb(p) png_set_expand(p)
#define png_set_gray_1_2_4_to_8(p) png_set_expand(p)
#define png_set_tRNS_to_alpha(p) png_set_expand(p)
#elif PNG_LIBPNG_VER >= 10500
// libpng-1.5 include does not pull in zlib.h
#include "zlib.h"
#endif

using namespace std;
Expand Down

0 comments on commit 53926cb

Please sign in to comment.