mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-11 16:37:45 -04:00
build: fix red in 7eeb4e4302
STORAGE_WANTS_ALIGN needs to be ignored for simulator builds Change-Id: I4d788f91d3d1ed81c0621b9adac985ca188d918c
This commit is contained in:
parent
7eeb4e4302
commit
408f155f53
1 changed files with 2 additions and 2 deletions
|
|
@ -203,7 +203,7 @@ enum {
|
|||
MAXMEMGUARD
|
||||
};
|
||||
|
||||
#if !defined(SIMULATOR) && !defined(__PCTOOL__)
|
||||
#if !defined(SIMULATOR) && !defined(__PCTOOL__)
|
||||
#include "system-target.h"
|
||||
#elif defined(HAVE_SDL) /* SDL build */
|
||||
#include "system-sdl.h"
|
||||
|
|
@ -326,7 +326,7 @@ static inline void cpu_boost_unlock(void)
|
|||
#define STORAGE_WANTS_ALIGN
|
||||
#endif
|
||||
|
||||
#ifdef STORAGE_WANTS_ALIGN
|
||||
#if defined(STORAGE_WANTS_ALIGN) && !defined(SIMULATOR)
|
||||
#define STORAGE_ALIGN_ATTR __attribute__((aligned(CACHEALIGN_SIZE)))
|
||||
#define STORAGE_ALIGN_DOWN(x) \
|
||||
((typeof (x))ALIGN_DOWN_P2((uintptr_t)(x), CACHEALIGN_BITS))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue