Skip to content

Commit

Permalink
Keep previous comment
Browse files Browse the repository at this point in the history
  • Loading branch information
irajtaghlidi committed Sep 12, 2024
1 parent bb51a6a commit da6acb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mbedtls/src/mbedtls_malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#define mbedtls_free free
#endif

// Use several macros to get the preprocessor to actually replace RUST_MBEDTLS_SYMBOL_SUFFIX.
// This code handles cases where `mbedtls_calloc` and `mbedtls_free` may be macros instead of functions,
// which Bindgen has trouble with. The `APPEND_METADATA_HASH` macro appends a suffix from `RUST_MBEDTLS_SYMBOL_SUFFIX`
// to ensure proper symbol linkage, regardless of whether the original mbedtls functions are macros or symbols.
Expand Down

0 comments on commit da6acb5

Please sign in to comment.