From 282041e228d4a60ff7108fbfd1fc23caffd59ba4 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 11 Apr 2020 17:30:34 +0200 Subject: core: make picture.h compatible with C++ The "extern C {" guards were missing. Signed-off-by: Berthold Stoeger --- core/picture.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/picture.h') diff --git a/core/picture.h b/core/picture.h index 93b644d71..6dd6650dd 100644 --- a/core/picture.h +++ b/core/picture.h @@ -5,6 +5,10 @@ // picture (more precisely media) related strutures and functions #include "units.h" +#ifdef __cplusplus +extern "C" { +#endif + struct picture { char *filename; offset_t offset; @@ -15,4 +19,8 @@ struct picture { extern struct picture *alloc_picture(); extern void free_picture(struct picture *picture); +#ifdef __cplusplus +} +#endif + #endif // PICTURE_H -- cgit v1.2.3-70-g09d2