Define hastd's STRICT_ALIGN macro in a defined and portable way.

MFC after:	3 days
This commit is contained in:
Dimitry Andric 2016-08-28 21:26:11 +00:00
parent d851916ef2
commit 1fc157ae91
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=304969

View File

@ -132,7 +132,11 @@ lzf_decompress (const void *const in_data, unsigned int in_len,
* Unconditionally aligning does not cost very much, so do it if unsure
*/
#ifndef STRICT_ALIGN
# define STRICT_ALIGN !(defined(__i386) || defined (__amd64))
# if !(defined(__i386) || defined (__amd64))
# define STRICT_ALIGN 1
# else
# define STRICT_ALIGN 0
# endif
#endif
/*