Skip to content

Commit

Permalink
Include image funcs in clip_none only when CLIP_ENABLE_IMAGE is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Jan 26, 2025
1 parent 43ed5f0 commit 8b1e104
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clip_none.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ size_t lock::impl::get_data_length(format f) const {
return 0;
}

#if CLIP_ENABLE_IMAGE

bool lock::impl::set_image(const image& image) {
return false; // TODO
}
Expand All @@ -79,6 +81,8 @@ bool lock::impl::get_image_spec(image_spec& spec) const {
return false; // TODO
}

#endif // CLIP_ENABLE_IMAGE

format register_format(const std::string& name) {
return g_last_format++;
}
Expand Down

0 comments on commit 8b1e104

Please sign in to comment.