diff options
author | Oleg Oshmyan <chortos@inbox.lv> | 2015-01-16 13:26:13 +0200 |
---|---|---|
committer | Oleg Oshmyan <chortos@inbox.lv> | 2015-01-16 14:16:59 +0200 |
commit | 29505ecf25b33364ee7472ac58018b8b9195d49d (patch) | |
tree | cf796b6162e83263dd72c466c1b526e8decc11bb /libass/ass.h | |
parent | fc0b84c7b230f35dcf3be4695d6d45142922ed8c (diff) | |
download | libass-29505ecf25b33364ee7472ac58018b8b9195d49d.tar.bz2 libass-29505ecf25b33364ee7472ac58018b8b9195d49d.tar.xz |
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.
Diffstat (limited to 'libass/ass.h')
-rw-r--r-- | libass/ass.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 */ |