fix no C API build

test
Syping 1 year ago
parent 5f46f18040
commit 48f8d12246
  1. 3
      src/RagePhoto.cpp
  2. 2
      src/RagePhoto.h

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

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

Loading…
Cancel
Save