mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 05:41:37 +00:00
[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:
committed by
Dmitrii Kuvaiskii
parent
220ae79695
commit
d4c402d0ac
+10
-1
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user