fix msvc build breakage after 252028a

replace inline with WEBP_INLINE; inline is reserved for c++ code
w/visual studio

Change-Id: Ib06c6a12fd786701740d8b260d9aa310ee81fddf
This commit is contained in:
James Zern 2012-01-05 18:26:40 -08:00
parent 7c4c177c39
commit 9d0e17c9a9

View File

@ -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);