-
Notifications
You must be signed in to change notification settings - Fork 40
small fixes in preparation for the WAMR 2.4 upgrade #514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
ce310fa
8f392e1
e74286c
8b63576
e1ca988
7b1a5af
84329c8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -37,12 +37,14 @@ std::new_handler std::get_new_handler() _NOEXCEPT | |||||||
| return NULL; | ||||||||
| } | ||||||||
|
|
||||||||
| void * operator new(size_t sz) throw(std::bad_alloc) | ||||||||
| //void * operator new(size_t sz) throw(std::bad_alloc) | ||||||||
| void * operator new(size_t sz) noexcept(false) | ||||||||
| { | ||||||||
| return malloc(sz); | ||||||||
| } | ||||||||
|
|
||||||||
| void * operator new[](size_t sz) throw(std::bad_alloc) | ||||||||
| //void * operator new[](size_t sz) throw(std::bad_alloc) | ||||||||
| void * operator new[](size_t sz) noexcept(false) | ||||||||
| { | ||||||||
| return malloc(sz); | ||||||||
| } | ||||||||
|
|
@@ -65,6 +67,7 @@ void operator delete(void *ptr, std::align_val_t) _NOEXCEPT | |||||||
| } | ||||||||
|
|
||||||||
| #include <stdio.h> | ||||||||
| FILE *const stderr = NULL; | ||||||||
|
||||||||
| FILE *const stderr = NULL; | |
| static FILE dummy_stderr; | |
| FILE *const stderr = &dummy_stderr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in a way, we want access to stderr to fail. this is only necessary because one of the builtin libraries (wasi or wamr) references stderr in a way that requires the symbol definition.
Uh oh!
There was an error while loading. Please reload this page.