From 99638b9fff0a5ea85557b5cc7ff85367a65b97b3 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 10 Jul 2025 02:17:32 +0200 Subject: refactor: Small codebase refactor and cleanup. Signed-off-by: Amlal El Mahrouss --- dev/LibC++/defines.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'dev/LibC++') diff --git a/dev/LibC++/defines.h b/dev/LibC++/defines.h index 521601f..84e437a 100644 --- a/dev/LibC++/defines.h +++ b/dev/LibC++/defines.h @@ -12,6 +12,9 @@ extern "C" { #include } + +#define __ATTRIBUTE(X) __attribute__((X)) + #ifndef __GNUC__ typedef __SIZE_TYPE__ size_t; @@ -74,7 +77,7 @@ typedef union float_cast { }; float f; -} __attribute__((packed)) float_cast_t; +} __ATTRIBUTE(packed) float_cast_t; typedef union double_cast { struct { @@ -84,7 +87,7 @@ typedef union double_cast { }; double f; -} __attribute__((packed)) double_cast_t; +} __ATTRIBUTE(packed) double_cast_t; #endif // ifndef __GNUC__ -- cgit v1.2.3