giflib-5.2.1 cannot be build on windows and other platforms using c89
Note that the fix did not drop/wrap the usage of "<unistd.h>" in the "giflib/gif_hash.h".</unistd.h>
Note that <stdbool.h> is not part of c89 as well. https://pubs.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html</stdbool.h>
Cannot compile giflib using c89
I found that for giflib 5.1.4 I had a separate old patch which workaround this bug. So it seems the bug is not specific to 5.1.8 but a general issue with building of giflib on windows(without cygwin or mingw)
The latest version of giflib-5.1.8 cannot be build on windows