Skip to content

Commit

Permalink
Symbols requiring CAMLextern for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dra27 committed Sep 27, 2022
1 parent 13dd6fd commit 6533b48
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion runtime/caml/backtrace_prim.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void caml_debuginfo_location(debuginfo dbg, /*out*/ struct caml_loc_info * li);
/* Allocate Caml_state->backtrace_buffer. Returns 0 on success, -1 otherwise */
int caml_alloc_backtrace_buffer(void);

void caml_free_backtrace_buffer(backtrace_slot *backtrace_buffer);
CAMLextern void caml_free_backtrace_buffer(backtrace_slot *backtrace_buffer);

#ifndef NATIVE_CODE
/* These two functions are used by the bytecode runtime when loading
Expand Down
2 changes: 1 addition & 1 deletion runtime/caml/fiber.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ void caml_maybe_expand_stack(void);
CAMLextern void caml_free_stack(struct stack_info* stk);

/* gc_regs_buckets is allocated on-demand by [maybe_expand_stack]. */
void caml_free_gc_regs_buckets(value *gc_regs_buckets);
CAMLextern void caml_free_gc_regs_buckets(value *gc_regs_buckets);

#ifdef NATIVE_CODE
void caml_get_stack_sp_pc (struct stack_info* stack,
Expand Down
4 changes: 2 additions & 2 deletions runtime/caml/signals.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ value caml_process_pending_actions_with_root_exn (value extra_root);
void caml_init_signal_handling(void);
void caml_init_signals();
void caml_terminate_signals();
void * caml_init_signal_stack(void);
void caml_free_signal_stack(void *);
CAMLextern void * caml_init_signal_stack(void);
CAMLextern void caml_free_signal_stack(void *);

/* These hooks are not modified after other threads are spawned. */
CAMLextern void (*caml_enter_blocking_section_hook)(void);
Expand Down

0 comments on commit 6533b48

Please sign in to comment.