From 76d273d45533de547e733794e940cad8f673351f Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Wed, 6 Oct 2010 09:02:08 +0000 Subject: [PATCH] - don't build if no libvpx available --- ext/gd/libgd/webpimg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */ -- 2.40.0