From feab45ef9955b912a16708716d8a7ed01b11447f Mon Sep 17 00:00:00 2001 From: Urvang Joshi Date: Fri, 17 Apr 2015 12:40:57 -0700 Subject: [PATCH] gifdec: Move inclusion of webp/config.h to header. Given that we are checking GIFLIB_MAJOR etc in the header, we need the config in header. Change-Id: I5d502bd67555752a57589a8ce789efcf0945d72e --- examples/gifdec.c | 4 ---- examples/gifdec.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/gifdec.c b/examples/gifdec.c index cd72ebdc..f315a5b0 100644 --- a/examples/gifdec.c +++ b/examples/gifdec.c @@ -9,10 +9,6 @@ // // GIF decode. -#ifdef HAVE_CONFIG_H -#include "webp/config.h" -#endif - #include "./gifdec.h" #include diff --git a/examples/gifdec.h b/examples/gifdec.h index 55ea2a40..5eba9dd3 100644 --- a/examples/gifdec.h +++ b/examples/gifdec.h @@ -15,6 +15,10 @@ #include #include "webp/types.h" +#ifdef HAVE_CONFIG_H +#include "webp/config.h" +#endif + #ifdef WEBP_HAVE_GIF #include #endif