mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
fix build with bundled libgd
This commit is contained in:
parent
2a2ac5f2be
commit
00b097d2a3
2 changed files with 13 additions and 9 deletions
20
ext/gd/gd.c
20
ext/gd/gd.c
|
@ -29,14 +29,6 @@
|
|||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_GD_PNG
|
||||
#include <png.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_GD_JPG
|
||||
# include <jpeglib.h>
|
||||
#endif
|
||||
|
||||
#include "php.h"
|
||||
#include "php_ini.h"
|
||||
#include "ext/standard/head.h"
|
||||
|
@ -61,6 +53,18 @@
|
|||
# include <Wingdi.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_GD_PNG
|
||||
# include <png.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_GD_JPG
|
||||
# include <jpeglib.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_GD_XPM
|
||||
# include <X11/xpm.h>
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_GD_BUNDLED
|
||||
#ifdef HAVE_GD_PNG
|
||||
const char * gdPngGetVersionString()
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#if HAVE_LIBGD
|
||||
#if defined(HAVE_LIBGD) || defined(HAVE_GD_BUNDLED)
|
||||
|
||||
/* open_basedir and safe_mode checks */
|
||||
#define PHP_GD_CHECK_OPEN_BASEDIR(filename, errormsg) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue