summaryrefslogtreecommitdiffhomepage
path: root/dev/LibC++
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-07-10 02:17:32 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-07-10 02:17:32 +0200
commit99638b9fff0a5ea85557b5cc7ff85367a65b97b3 (patch)
treede8846bc94fd6197d16eb7551279d9b27680338b /dev/LibC++
parent3b237c1db6d44f6d813c210203dbaf7ad9b92a8c (diff)
refactor: Small codebase refactor and cleanup.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/LibC++')
-rw-r--r--dev/LibC++/defines.h7
1 files changed, 5 insertions, 2 deletions
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 <stdint.h>
}
+
+#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__