From 9d0e17c9a9753ae0df1ea34a78031628ab38641a Mon Sep 17 00:00:00 2001 From: James Zern Date: Thu, 5 Jan 2012 18:26:40 -0800 Subject: [PATCH] fix msvc build breakage after 252028a replace inline with WEBP_INLINE; inline is reserved for c++ code w/visual studio Change-Id: Ib06c6a12fd786701740d8b260d9aa310ee81fddf --- src/utils/filters.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/filters.c b/src/utils/filters.c index 0abdd687..ca78f0e8 100644 --- a/src/utils/filters.c +++ b/src/utils/filters.c @@ -164,11 +164,11 @@ static void GradientUnfilter(const uint8_t* data, int width, int height, //------------------------------------------------------------------------------ // Paeth filter. -static inline int AbsDiff(int a, int b) { +static WEBP_INLINE int AbsDiff(int a, int b) { return (a > b) ? a - b : b - a; } -static inline uint8_t PaethPredictor(uint8_t a, uint8_t b, uint8_t c) { +static WEBP_INLINE uint8_t PaethPredictor(uint8_t a, uint8_t b, uint8_t c) { const int p = a + b - c; // Base. const int pa = AbsDiff(p, a); const int pb = AbsDiff(p, b);