-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If we are using the preallocated interface only then stdlib.h is not required. Currently we unconditionally include it. Add ifdef guards around any code that uses malloc and friends and then conditionally include `stdlib.h` based on `PREALLOC_INTERFACE_ONLY`. The benefit of this patch is that downstream users who wish to build libsecp256k1 into WASM will not need to patch into their build an empty `stdlib.h` file.
- Loading branch information
Showing
2 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters