summaryrefslogtreecommitdiffhomepage
path: root/dev/LibC++
diff options
context:
space:
mode:
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__