Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed include checks for libpng under win

  • Loading branch information...
commit 0165eec1ea63d4b4a063d68e7b78947f038d67ba 1 parent 4f860a4
Anatol Belski weltling authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  ext/gd/config.w32
3  ext/gd/config.w32
@@ -9,7 +9,8 @@ if (PHP_GD != "no") {
9 9 CHECK_LIB("freetype_a.lib;freetype.lib", "gd", PHP_GD) &&
10 10 CHECK_LIB("libpng_a.lib;libpng.lib", "gd", PHP_GD) &&
11 11 CHECK_HEADER_ADD_INCLUDE("gd.h", "CFLAGS_GD", PHP_GD + ";ext\\gd\\libgd") &&
12   - CHECK_HEADER_ADD_INCLUDE("png.h", "CFLAGS_GD", PHP_GD + ";" + PHP_PHP_BUILD + "\\include\\libpng12") &&
  12 + (CHECK_HEADER_ADD_INCLUDE("png.h", "CFLAGS_GD", PHP_GD + ";" + PHP_PHP_BUILD + "\\include\\libpng") ||
  13 + CHECK_HEADER_ADD_INCLUDE("png.h", "CFLAGS_GD", PHP_GD + ";" + PHP_PHP_BUILD + "\\include\\libpng12")) &&
13 14 (CHECK_LIB("libiconv_a.lib;libiconv.lib", "gd", PHP_GD) || CHECK_LIB("iconv_a.lib;iconv.lib", "gd", PHP_GD)) &&
14 15 CHECK_HEADER_ADD_INCLUDE("iconv.h", "CFLAGS_GD", PHP_GD) &&
15 16 (((PHP_ZLIB=="no") && (CHECK_LIB("zlib_a.lib;zlib.lib", "gd", PHP_GD) )) ||

0 comments on commit 0165eec

Please sign in to comment.
Something went wrong with that request. Please try again.