From 93a8d83fded5d5870645ed049e9ae89a18f5a15f Mon Sep 17 00:00:00 2001 From: Syping Date: Fri, 31 Oct 2025 16:40:22 +0100 Subject: [PATCH] libragephoto: use void* for C++ and RagePhotoInstance for C --- src/core/RagePhoto.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/RagePhoto.h b/src/core/RagePhoto.h index 383cac0..68429be 100644 --- a/src/core/RagePhoto.h +++ b/src/core/RagePhoto.h @@ -35,7 +35,11 @@ extern "C" { /** RagePhoto typedef for C instance/C++ object. * \memberof RagePhotoInstance */ +#ifdef LIBRAGEPHOTO_C_ONLY typedef RagePhotoInstance* ragephoto_t; +#else +typedef void* ragephoto_t; +#endif /** Opens a \p ragephoto_t instance. * \memberof RagePhotoInstance