2021-02-03 20:39:47 (UTC-03:00)
Marcel Rodrigues <marcelgmr@gmail.com>
Merge pull request #9 from Wuerfel21/patch-1 Add extern "C" block for including in C++ code
diff --git a/gifenc.h b/gifenc.h index b8504e0..9b63c7e 100644 --- a/gifenc.h +++ b/gifenc.h @@ -3,6 +3,10 @@ #include <stdint.h> +#ifdef __cplusplus +extern "C" { +#endif + typedef struct ge_GIF { uint16_t w, h; int depth; @@ -21,4 +25,7 @@ ge_GIF *ge_new_gif( void ge_add_frame(ge_GIF *gif, uint16_t delay); void ge_close_gif(ge_GIF* gif); +#ifdef __cplusplus +} +#endif #endif /* GIFENC_H */