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:
@@ -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 */
|
||||||
|
Reference in New Issue
Block a user