1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Make MY_ALIGNED usable to define alignment of data structures

This commit is contained in:
Mikael Ronstrom
2011-05-04 10:42:48 +02:00
parent f24588519c
commit 28f5527371

View File

@@ -140,6 +140,14 @@ struct my_aligned_storage
#endif /* __cplusplus */ #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> #include <my_attribute.h>
#endif /* MY_COMPILER_INCLUDED */ #endif /* MY_COMPILER_INCLUDED */