]> granicus.if.org Git - php/commitdiff
- don't build if no libvpx available
authorPierre Joye <pajoye@php.net>
Wed, 6 Oct 2010 09:02:08 +0000 (09:02 +0000)
committerPierre Joye <pajoye@php.net>
Wed, 6 Oct 2010 09:02:08 +0000 (09:02 +0000)
ext/gd/libgd/webpimg.c

index 171c6b11410d9cde741066580999612511dc20cc..01bef93c48cababd928bd4517b6fcbf4d64d6ac5 100644 (file)
@@ -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 */