From 29505ecf25b33364ee7472ac58018b8b9195d49d Mon Sep 17 00:00:00 2001 From: Oleg Oshmyan Date: Fri, 16 Jan 2015 13:26:13 +0200 Subject: 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. --- libass/ass.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 */ -- cgit v1.2.3