Skip to content

Commit

Permalink
chore: Windows needs more LEAN_EXPORTs (#4941)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kha authored Aug 7, 2024
1 parent a29bca7 commit 240ebff
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/runtime/alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ Author: Leonardo de Moura
#pragma once
#include <stddef.h>
#include <stdint.h>
#include <lean/lean.h>

namespace lean {
void init_thread_heap();
void * alloc(size_t sz);
void dealloc(void * o, size_t sz);
void add_heartbeats(uint64_t count);
uint64_t get_num_heartbeats();
LEAN_EXPORT void * alloc(size_t sz);
LEAN_EXPORT void dealloc(void * o, size_t sz);
LEAN_EXPORT void add_heartbeats(uint64_t count);
LEAN_EXPORT uint64_t get_num_heartbeats();
void initialize_alloc();
void finalize_alloc();
}

0 comments on commit 240ebff

Please sign in to comment.