[Pal/regression] Hex.c: Define __abort() and warn() not exported by Pal

Previously, Hex.c used __abort() and warn() not exported by PAL. This
led to linking errors during build.
This commit is contained in:
Isaku Yamahata
2020-02-05 23:16:32 -08:00
committed by Dmitrii Kuvaiskii
parent 220ae79695
commit d4c402d0ac
+10 -1
View File
@@ -1,8 +1,17 @@
#include <assert.h>
#include "pal_debug.h"
/* workaround: warn is not exported by pal. but pal_printf is */
#define warn pal_printf
#include "hex.h"
#include "api.h"
#include "pal.h"
#include "pal_debug.h"
noreturn void __abort(void) {
// ENOTRECOVERABLE = 131
DkProcessExit(-131);
}
int main() {
char x[] = {0xde, 0xad, 0xbe, 0xef};