From: Oleg Oshmyan Date: Fri, 16 Jan 2015 11:26:13 +0000 (+0200) Subject: Add extern "C" guard to public header X-Git-Tag: 0.12.2~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29505ecf25b33364ee7472ac58018b8b9195d49d;p=libass Add extern "C" guard to public header Our public headers can be #included from C++. Hence, ass.h needs an extern "C" guard to declare the correct linkage for functions. ass_types.h only defines types, so it does not need a guard. --- diff --git a/libass/ass.h b/libass/ass.h index 4673032..ca9d8af 100644 --- a/libass/ass.h +++ b/libass/ass.h @@ -25,6 +25,10 @@ #define LIBASS_VERSION 0x01201000 +#ifdef __cplusplus +extern "C" { +#endif + /* * A linked list of images produced by an ass renderer. * @@ -536,4 +540,8 @@ void ass_clear_fonts(ASS_Library *library); */ long long ass_step_sub(ASS_Track *track, long long now, int movement); +#ifdef __cplusplus +} +#endif + #endif /* LIBASS_ASS_H */