Jelajahi Sumber

change: replace _Noreturn to attr(noret)

greatbridf 2 tahun lalu
induk
melakukan
a69cd63f14
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  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[]);