Skip to content

Commit

Permalink
Use CAMLextern in caml_ forward declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonah Beckford committed Nov 26, 2024
1 parent c5d37ab commit 1432048
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### Pending

- Use `CAMLextern` rather than `extern` in `caml_*` forward declarations to
support bytecode linking on Windows (@jonahbeckford, #157)

### v1.2.0 2024-03-18 Paris (France)

- Update the description to include SHA3 (@Leonidas-from-XIV, #146)
Expand Down
4 changes: 2 additions & 2 deletions src-c/native/stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
* these functions still exist!
*/

extern void caml_enter_blocking_section (void);
extern void caml_leave_blocking_section (void);
CAMLextern void caml_enter_blocking_section (void);
CAMLextern void caml_leave_blocking_section (void);

#define __define_ba_update(name) \
CAMLprim value \
Expand Down

0 comments on commit 1432048

Please sign in to comment.