Commit 748cd32c authored by André Anjos's avatar André Anjos 💬
Browse files

To declare QuantizeBuffer, require only that giflib is 4.2

parent 2607de99
......@@ -23,8 +23,8 @@ extern "C" {
#include <gif_lib.h>
}
// (Ugly) copy of QuantizeBuffer function definition that was inlined (only) in giflib 4.2
#if !defined(HAVE_GIFLIB_QUANTIZE_BUFFER) && (defined(GIF_LIB_VERSION) || (defined(GIFLIB_MAJOR) && GIFLIB_MAJOR < 5))
// QuantizeBuffer function definition that was inlined (only) in giflib 4.2
#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR < 5
#define ABS(x) ((x) > 0 ? (x) : (-(x)))
#define COLOR_ARRAY_SIZE 32768
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment