summaryrefslogtreecommitdiff
path: root/include/my_compiler.h
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael.ronstrom@oracle.com>2011-05-04 10:42:48 +0200
committerMikael Ronstrom <mikael.ronstrom@oracle.com>2011-05-04 10:42:48 +0200
commit28f55273713991769f6e6e088d0c5967870eac8f (patch)
treedb185cecee65d0c3df0dc99ea2c99508fd0525a8 /include/my_compiler.h
parentf24588519c6549313a87e2fe3aa72d23c1616d68 (diff)
downloadmariadb-git-28f55273713991769f6e6e088d0c5967870eac8f.tar.gz
Make MY_ALIGNED usable to define alignment of data structures
Diffstat (limited to 'include/my_compiler.h')
-rw-r--r--include/my_compiler.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/my_compiler.h b/include/my_compiler.h
index 5f898621159..e55346d62fd 100644
--- a/include/my_compiler.h
+++ b/include/my_compiler.h
@@ -140,6 +140,14 @@ struct my_aligned_storage
#endif /* __cplusplus */
+# if defined(MY_ALIGNED)
+/*
+ Make sure MY_ALIGNED can be used also on platforms where we don't
+ have a way of aligning data structures.
+*/
+#define MY_ALIGNED(size)
+#endif
+
#include <my_attribute.h>
#endif /* MY_COMPILER_INCLUDED */