fix no C API build
This commit is contained in:
parent
5f46f18040
commit
48f8d12246
2 changed files with 3 additions and 2 deletions
|
@ -866,7 +866,7 @@ inline void RagePhoto::uInt32ToCharLE(uint32_t x, char *y)
|
||||||
}
|
}
|
||||||
|
|
||||||
// C API
|
// C API
|
||||||
|
#ifdef LIBRAGEPHOTO_C_API
|
||||||
ragephoto_t ragephoto_open()
|
ragephoto_t ragephoto_open()
|
||||||
{
|
{
|
||||||
return new RagePhoto;
|
return new RagePhoto;
|
||||||
|
@ -895,3 +895,4 @@ void ragephoto_close(ragephoto_t instance)
|
||||||
RagePhoto *ragePhoto = static_cast<RagePhoto*>(instance);
|
RagePhoto *ragePhoto = static_cast<RagePhoto*>(instance);
|
||||||
delete ragePhoto;
|
delete ragePhoto;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -206,9 +206,9 @@ LIBRAGEPHOTO_EXPORT uint32_t ragephoto_getphotosize(ragephoto_t instance);
|
||||||
*/
|
*/
|
||||||
LIBRAGEPHOTO_EXPORT void ragephoto_close(ragephoto_t instance);
|
LIBRAGEPHOTO_EXPORT void ragephoto_close(ragephoto_t instance);
|
||||||
|
|
||||||
#endif
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // RAGEPHOTO_H
|
#endif // RAGEPHOTO_H
|
||||||
|
|
Loading…
Reference in a new issue