diff options
Diffstat (limited to 'byterun/custom.h')
-rw-r--r-- | byterun/custom.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/byterun/custom.h b/byterun/custom.h index f71fb4fe1..c6abad8ef 100644 --- a/byterun/custom.h +++ b/byterun/custom.h @@ -43,6 +43,11 @@ struct custom_operations { #define Custom_ops_val(v) (*((struct custom_operations **) (v))) +#ifdef __cplusplus +extern "C" { +#endif + + CAMLextern value caml_alloc_custom(struct custom_operations * ops, uintnat size, /*size in bytes*/ mlsize_t mem, /*resources consumed*/ @@ -61,4 +66,8 @@ extern struct custom_operations * extern void caml_init_custom_operations(void); /* </private> */ +#ifdef __cplusplus +} +#endif + #endif /* CAML_CUSTOM_H */ |