summaryrefslogtreecommitdiffstats
path: root/core/picture.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-11 17:30:34 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-05-06 13:58:09 -0700
commit282041e228d4a60ff7108fbfd1fc23caffd59ba4 (patch)
treedaca20ca52c370e3c445c03cdbae1209c076fd99 /core/picture.h
parent2c4975f2ed728543d59300a622aa146fd94b4bd1 (diff)
downloadsubsurface-282041e228d4a60ff7108fbfd1fc23caffd59ba4.tar.gz
core: make picture.h compatible with C++
The "extern C {" guards were missing. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/picture.h')
-rw-r--r--core/picture.h8
1 files changed, 8 insertions, 0 deletions
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