fix no C API build

This commit is contained in:
Syping 2021-10-29 12:03:01 +02:00
parent 5f46f18040
commit 48f8d12246
2 changed files with 3 additions and 2 deletions

View File

@ -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<RagePhoto*>(instance);
delete ragePhoto;
}
#endif

View File

@ -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