SDK: Add stdlib.h include to pull in `abort()` (#21700)

This commit is contained in:
Jon Cinque 2021-12-08 17:00:16 +01:00 committed by GitHub
parent 7c9abaff2c
commit 923720f529
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ if (!(expr)) { \
* Stub functions when building tests
*/
#include <stdio.h>
#include <stdlib.h>
void sol_panic_(const char *file, uint64_t len, uint64_t line, uint64_t column) {
printf("Panic in %s at %d:%d\n", file, line, column);