From 28f55273713991769f6e6e088d0c5967870eac8f Mon Sep 17 00:00:00 2001 From: Mikael Ronstrom Date: Wed, 4 May 2011 10:42:48 +0200 Subject: Make MY_ALIGNED usable to define alignment of data structures --- include/my_compiler.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') 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 #endif /* MY_COMPILER_INCLUDED */ -- cgit v1.2.1