Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit ed930ce

Browse files
committed
[[ libgif ]] Fix compile error on Android
1 parent 0953316 commit ed930ce

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

libgif/src/openbsd-reallocarray.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
#include <stdint.h>
2121
#include <stdlib.h>
2222

23+
// IM-2016-10-28: [[ libgif ]] limits.h is needed to define SIZE_MAX on Android.
24+
#include <limits.h>
25+
2326
/*
2427
* This is sqrt(SIZE_MAX+1), as s1*s2 <= SIZE_MAX
2528
* if both s1 < MUL_NO_OVERFLOW and s2 < MUL_NO_OVERFLOW

0 commit comments

Comments
 (0)