diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-11 17:30:34 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-05-06 13:58:09 -0700 |
commit | 282041e228d4a60ff7108fbfd1fc23caffd59ba4 (patch) | |
tree | daca20ca52c370e3c445c03cdbae1209c076fd99 /core | |
parent | 2c4975f2ed728543d59300a622aa146fd94b4bd1 (diff) | |
download | subsurface-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')
-rw-r--r-- | core/picture.h | 8 |
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 |