summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2010-10-06 09:02:08 +0000
committerPierre Joye <pajoye@php.net>2010-10-06 09:02:08 +0000
commit76d273d45533de547e733794e940cad8f673351f (patch)
tree947833d2dd3b21efa9abec950a11dfbcef1c41c9 /ext
parent63d6892b56fd7266d988587d8ed8297a0ed95c9b (diff)
downloadphp-git-76d273d45533de547e733794e940cad8f673351f.tar.gz
- don't build if no libvpx available
Diffstat (limited to 'ext')
-rw-r--r--ext/gd/libgd/webpimg.c4
1 files changed, 3 insertions, 1 deletions
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 <math.h>
@@ -896,3 +897,4 @@ WebPResult WebPGetInfo(const uint8* data,
}
return webp_failure;
}
+#endif /* HAVE_LIBVPX */