mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:57:45 +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
|
@ -35,7 +35,7 @@ int closedir(DIR* dirp)
|
|||
return rc;
|
||||
}
|
||||
|
||||
struct sys_dirent {
|
||||
struct [[gnu::packed]] sys_dirent {
|
||||
ino_t ino;
|
||||
byte file_type;
|
||||
size_t namelen;
|
||||
|
@ -44,7 +44,7 @@ struct sys_dirent {
|
|||
{
|
||||
return sizeof(ino_t) + sizeof(byte) + sizeof(size_t) + sizeof(char) * namelen;
|
||||
}
|
||||
} __attribute__ ((packed));
|
||||
};
|
||||
|
||||
dirent* readdir(DIR* dirp)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue