Skip to content

Commit

Permalink
Use <stdlib.h> instead of declaring exit manualy.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Jun 12, 2020
1 parent 71d07cb commit f35cf16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libc-bottom-half/cloudlibc/src/include/stdlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ void *calloc(size_t, size_t);
div_t div(int, int) __pure2;
double drand48(void);
double erand48(__uint16_t *);
_Noreturn void exit(int);
#endif
_Noreturn void exit(int);
void free(void *);
#ifdef __wasilibc_unmodified_upstream
char *getenv(const char *);
Expand Down
2 changes: 1 addition & 1 deletion libc-bottom-half/crt/crt1.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <wasi/api.h>
#include <stdlib.h>
extern void __wasm_call_ctors(void);
extern int __original_main(void);
extern void __wasm_call_dtors(void);
_Noreturn void exit(int);

__attribute__((export_name("_start")))
void _start(void) {
Expand Down

0 comments on commit f35cf16

Please sign in to comment.