mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-20 23:54:38 +01: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=304969
@ -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 New Issue
Block a user