mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: make picture.h compatible with C++
The "extern C {" guards were missing. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
2c4975f2ed
commit
282041e228
1 changed files with 8 additions and 0 deletions
|
@ -5,6 +5,10 @@
|
||||||
// picture (more precisely media) related strutures and functions
|
// picture (more precisely media) related strutures and functions
|
||||||
#include "units.h"
|
#include "units.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
struct picture {
|
struct picture {
|
||||||
char *filename;
|
char *filename;
|
||||||
offset_t offset;
|
offset_t offset;
|
||||||
|
@ -15,4 +19,8 @@ struct picture {
|
||||||
extern struct picture *alloc_picture();
|
extern struct picture *alloc_picture();
|
||||||
extern void free_picture(struct picture *picture);
|
extern void free_picture(struct picture *picture);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // PICTURE_H
|
#endif // PICTURE_H
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue