diff --git a/src/RagePhoto.cpp b/src/RagePhoto.cpp index a46df29..2fff99d 100644 --- a/src/RagePhoto.cpp +++ b/src/RagePhoto.cpp @@ -866,7 +866,7 @@ inline void RagePhoto::uInt32ToCharLE(uint32_t x, char *y) } // C API - +#ifdef LIBRAGEPHOTO_C_API ragephoto_t ragephoto_open() { return new RagePhoto; @@ -895,3 +895,4 @@ void ragephoto_close(ragephoto_t instance) RagePhoto *ragePhoto = static_cast(instance); delete ragePhoto; } +#endif diff --git a/src/RagePhoto.h b/src/RagePhoto.h index 5e38f43..15bb4e2 100644 --- a/src/RagePhoto.h +++ b/src/RagePhoto.h @@ -206,9 +206,9 @@ LIBRAGEPHOTO_EXPORT uint32_t ragephoto_getphotosize(ragephoto_t instance); */ LIBRAGEPHOTO_EXPORT void ragephoto_close(ragephoto_t instance); -#endif #ifdef __cplusplus } #endif +#endif #endif // RAGEPHOTO_H