Skip to content

Commit

Permalink
workaround for giflib >=5.2 (#1248)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaito3014 authored Jul 23, 2024
1 parent 9c77228 commit 53603be
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions Siv3D/src/Siv3D/ImageFormat/GIF/GIFEncoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 53603be

Please sign in to comment.