diff --git a/Siv3D/src/Siv3D/ImageFormat/GIF/GIFEncoder.cpp b/Siv3D/src/Siv3D/ImageFormat/GIF/GIFEncoder.cpp index 4ed6b31a3..19ac90ee0 100644 --- a/Siv3D/src/Siv3D/ImageFormat/GIF/GIFEncoder.cpp +++ b/Siv3D/src/Siv3D/ImageFormat/GIF/GIFEncoder.cpp @@ -23,15 +23,27 @@ extern "C" { // libgif/libutil +# if (GIFLIB_MAJOR == 5 && GIFLIB_MINOR == 2 && GIFLIB_RELEASE >= 2) || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR > 2) || (GIFLIB_MAJOR > 5) int - GifQuantizeBuffer(unsigned int Width, - unsigned int Height, - int* ColorMapSize, - GifByteType* RedInput, - GifByteType* GreenInput, - GifByteType* BlueInput, - GifByteType* OutputBuffer, - GifColorType* OutputColorMap); + GifQuantizeBuffer(unsigned int Width, + unsigned int Height, + int* ColorMapSize, + const GifByteType* RedInput, + const GifByteType* GreenInput, + const GifByteType* BlueInput, + GifByteType* OutputBuffer, + GifColorType* OutputColorMap); +# else + int + GifQuantizeBuffer(unsigned int Width, + unsigned int Height, + int* ColorMapSize, + GifByteType* RedInput, + GifByteType* GreenInput, + GifByteType* BlueInput, + GifByteType* OutputBuffer, + GifColorType* OutputColorMap); +# endif } namespace s3d