[ox/std] Remove usage of stdlib from substitutes...

This commit is contained in:
Gary Talent 2019-06-16 00:52:02 -05:00
parent 47ce0408d5
commit 14a40bdcd6

View File

@ -8,14 +8,10 @@
#ifndef OX_USE_STDLIB
#include <cstdlib>
#include <stdio.h>
// weak link panic to ensure that it exists, but allow it to be overriden by
// platform specific code
void __attribute__((weak)) panic(const char *msg) {
printf("Unexpected state:\n%s", msg);
std::abort();
void __attribute__((weak)) panic(const char*) {
while (1);
}
extern "C" {