mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +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
|
@ -36,14 +36,14 @@ static constexpr const char* error_glyph {
|
|||
static Font* s_default_font;
|
||||
static Font* s_default_bold_font;
|
||||
|
||||
struct FontFileHeader {
|
||||
struct [[gnu::packed]] FontFileHeader {
|
||||
char magic[4];
|
||||
byte glyph_width;
|
||||
byte glyph_height;
|
||||
byte type;
|
||||
byte unused[7];
|
||||
char name[64];
|
||||
} PACKED;
|
||||
};
|
||||
|
||||
static inline constexpr size_t font_file_size(unsigned glyph_height)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue