LibC: rename [[noreturn]] to __attribute__((__noreturn__))

This compiles with C compiler
This commit is contained in:
Bananymous 2023-06-02 17:28:36 +03:00
parent e6f0f891a6
commit afb29ff3ec
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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, ...);