mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:47:37 +00:00
Use modern C++ attributes instead of __attribute__ voodoo.
This is quite nice, although I wish [[gnu::always_inline]] implied inline. Also "gnu::" is kind of a wart, but whatcha gonna do.
This commit is contained in:
parent
fbcc8ab840
commit
022f7790db
34 changed files with 99 additions and 124 deletions
|
@ -3,15 +3,17 @@
|
|||
#include <Kernel/Syscall.h>
|
||||
#include <AK/StringImpl.h>
|
||||
|
||||
extern "C" int main(int, char**);
|
||||
extern "C" {
|
||||
|
||||
int main(int, char**);
|
||||
|
||||
int errno;
|
||||
char** environ;
|
||||
|
||||
extern "C" void __malloc_init();
|
||||
extern "C" void __stdio_init();
|
||||
void __malloc_init();
|
||||
void __stdio_init();
|
||||
|
||||
extern "C" int _start()
|
||||
int _start()
|
||||
{
|
||||
errno = 0;
|
||||
|
||||
|
@ -39,8 +41,9 @@ epilogue:
|
|||
return 20150614;
|
||||
}
|
||||
|
||||
extern "C" void __cxa_pure_virtual() NORETURN;
|
||||
extern "C" void __cxa_pure_virtual()
|
||||
[[noreturn]] void __cxa_pure_virtual()
|
||||
{
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue