mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Define hastd's STRICT_ALIGN macro in a defined and portable way.
MFC after: 3 days
This commit is contained in:
parent
d851916ef2
commit
1fc157ae91
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue