Skip to content

Commit

Permalink
fixup! fixup! pkg/libb2: define HAVE_ALIGNED_ACCESS_REQUIRED based on…
Browse files Browse the repository at this point in the history
… CPU
  • Loading branch information
benpicco committed Sep 2, 2019
1 parent 8761de4 commit 478fd62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/libb2/include/libb2_config.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef LIBB2_CONFIG_H
#define LIBB2_CONFIG_H

#include "cpu.h"

#ifdef __cplusplus
extern "C" {
#endif
Expand All @@ -13,8 +15,7 @@ extern "C" {
#define NATIVE_LITTLE_ENDIAN
#endif

/* CPUs that don't support unaligned access, taken from GStreamer */
#if defined(__alpha__) || defined(__arc__) || defined(__arm__) || defined(__aarch64__) || defined(__AVR_MEGA__) || defined(__AVR_ATtiny85__) || defined(__bfin) || defined(__hppa__) || defined(__nios2__) || defined(__MICROBLAZE__) || defined(__mips__) || defined(__or1k__) || defined(__sh__) || defined(__SH4__) || defined(__sparc__) || defined(__sparc) || defined(__ia64__) || defined(_M_ALPHA) || defined(_M_ARM) || defined(_M_ARM64) || defined(_M_IA64) || defined(__MSP430__) || defined(__xtensa__) || defined(__e2k__) || defined(__riscv)
#ifndef CPU_HAS_UNALIGNED_ACCESS
#define HAVE_ALIGNED_ACCESS_REQUIRED
#endif

Expand Down

0 comments on commit 478fd62

Please sign in to comment.