Skip to content

Commit 53603be

Browse files
authored
workaround for giflib >=5.2 (#1248)
1 parent 9c77228 commit 53603be

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

Siv3D/src/Siv3D/ImageFormat/GIF/GIFEncoder.cpp

+20-8
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,27 @@
2323
extern "C"
2424
{
2525
// libgif/libutil
26+
# if (GIFLIB_MAJOR == 5 && GIFLIB_MINOR == 2 && GIFLIB_RELEASE >= 2) || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR > 2) || (GIFLIB_MAJOR > 5)
2627
int
27-
GifQuantizeBuffer(unsigned int Width,
28-
unsigned int Height,
29-
int* ColorMapSize,
30-
GifByteType* RedInput,
31-
GifByteType* GreenInput,
32-
GifByteType* BlueInput,
33-
GifByteType* OutputBuffer,
34-
GifColorType* OutputColorMap);
28+
GifQuantizeBuffer(unsigned int Width,
29+
unsigned int Height,
30+
int* ColorMapSize,
31+
const GifByteType* RedInput,
32+
const GifByteType* GreenInput,
33+
const GifByteType* BlueInput,
34+
GifByteType* OutputBuffer,
35+
GifColorType* OutputColorMap);
36+
# else
37+
int
38+
GifQuantizeBuffer(unsigned int Width,
39+
unsigned int Height,
40+
int* ColorMapSize,
41+
GifByteType* RedInput,
42+
GifByteType* GreenInput,
43+
GifByteType* BlueInput,
44+
GifByteType* OutputBuffer,
45+
GifColorType* OutputColorMap);
46+
# endif
3547
}
3648

3749
namespace s3d

0 commit comments

Comments
 (0)