libansilove

Library for converting ANSI, ASCII, and other formats to PNG
Log | Files | Refs | README | LICENSE

commit 11605267e6b4445dbc79d0454c05f47acc1968b4
parent 2ed43bd3a0bd95d53d0ddbe8894be45abd5d33f0
Author: Frederic Cambus <fred@statdns.com>
Date:   Sun, 25 Oct 2020 14:24:46 +0100

Add #ifdef __cplusplus extern "C" to allow calling library functions from C++.

Diffstat:
Minclude/ansilove.h | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/include/ansilove.h b/include/ansilove.h @@ -17,6 +17,10 @@ #include <stddef.h> #include <stdint.h> +#ifdef __cplusplus +extern "C" { +#endif + #define ANSILOVE_EXTERN __attribute__((visibility("default"))) /* Version number */ @@ -107,4 +111,8 @@ ANSILOVE_EXTERN int ansilove_pcboard(struct ansilove_ctx *, struct ansilove_opt ANSILOVE_EXTERN int ansilove_tundra(struct ansilove_ctx *, struct ansilove_options *); ANSILOVE_EXTERN int ansilove_xbin(struct ansilove_ctx *, struct ansilove_options *); +#ifdef __cplusplus +} +#endif + #endif /* ANSILOVE_H */