Use ARM unaligned accesses ifdefs for SPARC as well.

This commit is contained in:
Salvatore Sanfilippo
2017-02-23 22:39:44 +08:00
parent d7826823c0
commit b3391fd853
3 changed files with 11 additions and 2 deletions

View File

@ -215,4 +215,13 @@ void setproctitle(const char *fmt, ...);
#define __arm64__
#endif
/* Make sure we can test for SPARC just checking for __sparc__. */
#if defined(__sparc) && !defined(__sparc__)
#define __sparc__
#endif
#if defined(__sparc__) || defined(__arm__)
#define USE_ALIGNED_ACCESS
#endif
#endif