Skip to content

Commit b619366

Browse files
authored
Fix build on 5.3.0+trunk (#9733)
* Move CAML_INTERNALS to surround all caml headers Signed-off-by: Jan Midtgaard <[email protected]> * Add comment documenting the reason Signed-off-by: Jan Midtgaard <[email protected]> --------- Signed-off-by: Jan Midtgaard <[email protected]>
1 parent b5d69e4 commit b619366

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/dune_digest/dune_digest_stubs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#define CAML_INTERNALS // needed to access md5.h functions
12
#include <caml/mlvalues.h>
23
#include <caml/alloc.h>
34
#include <caml/bigarray.h>
@@ -6,9 +7,7 @@
67
#include <caml/threads.h>
78
#include <caml/unixsupport.h>
89
#include <errno.h>
9-
#define CAML_INTERNALS
1010
#include <caml/md5.h>
11-
#undef CAML_INTERNALS
1211

1312
/* yanked from:
1413
* https://github.com/janestreet/core/blob/master/core/src/md5_stubs.c

0 commit comments

Comments
 (0)