2021-07-20 08:32:19 (UTC+03:00)
SR_team <SR_team@sr.team>
add compatible with C++
diff --git a/gifdec.h b/gifdec.h index c870b30..2bbc9f5 100644 --- a/gifdec.h +++ b/gifdec.h @@ -4,6 +4,10 @@ #include <stdint.h> #include <sys/types.h> +#ifdef __cplusplus +extern "C" { +#endif + typedef struct gd_Palette { int size; uint8_t colors[0x100 * 3]; @@ -45,4 +49,8 @@ int gd_is_bgcolor(gd_GIF *gif, uint8_t color[3]); void gd_rewind(gd_GIF *gif); void gd_close_gif(gd_GIF *gif); +#ifdef __cplusplus +} +#endif + #endif /* GIFDEC_H */