|
@@ -21,11 +21,14 @@
|
|
|
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
|
|
|
|
|
|
#define noinline __attribute__((noinline))
|
|
|
-
|
|
|
+#ifndef __packed
|
|
|
#define __packed __attribute__((packed))
|
|
|
-
|
|
|
+#endif
|
|
|
+#ifndef __noreturn
|
|
|
#define __noreturn __attribute__((noreturn))
|
|
|
-
|
|
|
+#endif
|
|
|
+#ifndef __aligned
|
|
|
#define __aligned(x) __attribute__((aligned(x)))
|
|
|
+#endif
|
|
|
#define __printf(a, b) __attribute__((format(printf, a, b)))
|
|
|
#define __scanf(a, b) __attribute__((format(scanf, a, b)))
|