mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +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
|
@ -1,11 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Compiler.h>
|
||||
#include <AK/Types.h>
|
||||
|
||||
#define PACKED __attribute__ ((packed))
|
||||
#define PURE __attribute__ ((pure))
|
||||
|
||||
typedef dword __u32;
|
||||
typedef word __u16;
|
||||
typedef byte __u8;
|
||||
|
@ -43,10 +39,10 @@ typedef dword nlink_t;
|
|||
typedef dword blksize_t;
|
||||
typedef dword blkcnt_t;
|
||||
|
||||
struct FarPtr {
|
||||
struct [[gnu::packed]] FarPtr {
|
||||
dword offset { 0 };
|
||||
word selector { 0 };
|
||||
} PACKED;
|
||||
};
|
||||
|
||||
class PhysicalAddress {
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue