Просмотр исходного кода

change: replace _Noreturn to attr(noret)

greatbridf 2 лет назад
Родитель
Сommit
a69cd63f14
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      gblibc/include/assert.h
  2. 1 1
      gblibc/include/unistd.h

+ 1 - 1
gblibc/include/assert.h

@@ -11,7 +11,7 @@
 extern "C" {
 #endif
 
-_Noreturn void
+void __attribute__((noreturn))
 __assert_fail(const char* statement, const char* file, int line, const char* func);
 
 #ifdef __cplusplus

+ 1 - 1
gblibc/include/unistd.h

@@ -17,7 +17,7 @@ extern "C" {
 ssize_t read(int fd, void* buf, size_t count);
 ssize_t write(int fd, const void* buf, size_t count);
 
-_Noreturn void _exit(int code);
+void __attribute__((noreturn)) _exit(int code);
 pid_t fork(void);
 int execve(const char* pathname, char* const argv[], char* const envp[]);