Skip to content

Commit

Permalink
fix: LEAN_EXPORT in sharecommon (#4893)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kha authored Aug 1, 2024
1 parent e83f78d commit 0ed1cf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/runtime/sharecommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ A faster version of `sharecommon_fn` which only uses a local state.
It optimizes the number of RC operations, the strategy for caching results,
and uses C++ hashmap.
*/
class sharecommon_quick_fn {
class LEAN_EXPORT sharecommon_quick_fn {
protected:
struct set_hash {
std::size_t operator()(lean_object * o) const { return lean_sharecommon_hash(o); }
Expand Down Expand Up @@ -60,7 +60,7 @@ class sharecommon_quick_fn {
Similar to `sharecommon_quick_fn`, but we save the entry points and result values to ensure
they are not deleted.
*/
class sharecommon_persistent_fn : private sharecommon_quick_fn {
class LEAN_EXPORT sharecommon_persistent_fn : private sharecommon_quick_fn {
std::vector<object_ref> m_saved;
public:
sharecommon_persistent_fn(bool s = false):sharecommon_quick_fn(s) {}
Expand Down
4 changes: 2 additions & 2 deletions stage0/src/runtime/sharecommon.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0ed1cf7

Please sign in to comment.