From 8e732195493c4a4d5f120f290e77524645d8772e Mon Sep 17 00:00:00 2001 From: Syping Date: Wed, 11 Jan 2023 18:45:35 +0100 Subject: [PATCH] RagePhotoData: make it clear that RagePhotoData is a C type struct --- src/RagePhotoData.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/RagePhotoData.h b/src/RagePhotoData.h index b120d6a..b4f9c61 100644 --- a/src/RagePhotoData.h +++ b/src/RagePhotoData.h @@ -21,6 +21,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + typedef struct RagePhotoData { char* jpeg; char* description; @@ -43,4 +47,8 @@ typedef struct RagePhotoData { uint32_t unnamedSum2; } RagePhotoData; +#ifdef __cplusplus +} +#endif // __cplusplus + #endif // RAGEPHOTODATA_H