Skip to content

Commit f35cf16

Browse files
committed
Use <stdlib.h> instead of declaring exit manualy.
1 parent 71d07cb commit f35cf16

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libc-bottom-half/cloudlibc/src/include/stdlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ void *calloc(size_t, size_t);
139139
div_t div(int, int) __pure2;
140140
double drand48(void);
141141
double erand48(__uint16_t *);
142-
_Noreturn void exit(int);
143142
#endif
143+
_Noreturn void exit(int);
144144
void free(void *);
145145
#ifdef __wasilibc_unmodified_upstream
146146
char *getenv(const char *);

libc-bottom-half/crt/crt1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#include <wasi/api.h>
2+
#include <stdlib.h>
23
extern void __wasm_call_ctors(void);
34
extern int __original_main(void);
45
extern void __wasm_call_dtors(void);
5-
_Noreturn void exit(int);
66

77
__attribute__((export_name("_start")))
88
void _start(void) {

0 commit comments

Comments
 (0)