diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h index 8a5956cc..02d7b086 100644 --- a/libc/include/stdlib.h +++ b/libc/include/stdlib.h @@ -41,9 +41,9 @@ typedef struct long long rem; /* remainder */ } lldiv_t; -[[noreturn]] void _Exit(int status); +void _Exit(int status) __attribute__((__noreturn__)); long a64l(const char* s); -[[noreturn]] void abort(void); +void abort(void) __attribute__((__noreturn__)); int abs(int i); int atexit(void (*func)(void)); double atof(const char* str); diff --git a/libc/include/unistd.h b/libc/include/unistd.h index 21b6f3ab..8d47566e 100644 --- a/libc/include/unistd.h +++ b/libc/include/unistd.h @@ -132,7 +132,7 @@ size_t confstr(int name, char* buf, size_t len); char* crypt(const char* key, const char* salt); int dup(int fildes); int dup2(int fildes, int fildes2); -[[noreturn]] void _exit(int status); +void _exit(int status) __attribute__((__noreturn__)); void encrypt(char block[64], int edflag); int execl(const char* path, const char* arg0, ...); int execle(const char* path, const char* arg0, ...);