summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */