summaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-01-31 09:53:53 +0000
committerBernhard Reutner-Fischer2006-01-31 09:53:53 +0000
commit9f4a1e1c75e86a38da22a3e82980fcddc4e58717 (patch)
tree707fdec25c2510d52f3ba6b2e4da15ce9089efd0 /include/platform.h
parentdfe6e74157e98a696b60c586a4ed0a35b9362838 (diff)
downloadbusybox-9f4a1e1c75e86a38da22a3e82980fcddc4e58717.zip
busybox-9f4a1e1c75e86a38da22a3e82980fcddc4e58717.tar.gz
- add and use ATTRIBUTE_ALIGNED(num_bytes)
- remove unused parameter pindex from fdisk.c, xbsd_initlabel()
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index 763292d..773d6b8 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -55,6 +55,10 @@
#define ATTRIBUTE_PACKED __attribute__ ((__packed__))
#endif /* ATTRIBUTE_NORETURN */
+#ifndef ATTRIBUTE_ALIGNED
+#define ATTRIBUTE_ALIGNED(m) __attribute__ ((__aligned__(m)))
+#endif /* ATTRIBUTE_ALIGNED */
+
/* -fwhole-program makes all symbols local. The attribute externally_visible
forces a symbol global. */
#ifndef ATTRIBUTE_EXTERNALLY_VISIBLE