From: Pierre Joye Date: Wed, 6 Oct 2010 09:02:08 +0000 (+0000) Subject: - don't build if no libvpx available X-Git-Tag: php-5.4.0alpha1~191^2~814 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76d273d45533de547e733794e940cad8f673351f;p=php - don't build if no libvpx available --- diff --git a/ext/gd/libgd/webpimg.c b/ext/gd/libgd/webpimg.c index 171c6b1141..01bef93c48 100644 --- a/ext/gd/libgd/webpimg.c +++ b/ext/gd/libgd/webpimg.c @@ -30,7 +30,8 @@ * * 6. AdjustColorspaceBack: */ - +#include "gd.h" +#ifdef HAVE_LIBVPX #include "webpimg.h" #include @@ -896,3 +897,4 @@ WebPResult WebPGetInfo(const uint8* data, } return webp_failure; } +#endif /* HAVE_LIBVPX */