Skip to content
12 changes: 11 additions & 1 deletion jdk/src/share/native/sun/awt/giflib/gif_lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,18 @@ extern "C" {
#define GIF_ERROR 0
#define GIF_OK 1

#include <stdbool.h>
#include <stddef.h>
/** Begin JDK modifications to support building using old compilers**/
#ifndef _WIN32
#include <stdbool.h>
#else
#ifdef bool
#undef bool
#endif
typedef int bool;
#define false 0
#define true 1
/** End JDK modifications to support building using old compilers**/

#define GIF_STAMP "GIFVER" /* First chars in file - GIF stamp. */
#define GIF_STAMP_LEN sizeof(GIF_STAMP) - 1
Expand Down