build: fix red in 7eeb4e4302

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit 408f155f539a62510cf0ef295d19e90711e025bf
Author: Solomon Peachy <[email protected]>
Date:   Fri Mar 6 13:37:27 2026 -0500

    build:  fix red in 7eeb4e4302
    
    STORAGE_WANTS_ALIGN needs to be ignored for simulator builds
    
    Change-Id: I4d788f91d3d1ed81c0621b9adac985ca188d918c

diff --git a/firmware/export/system.h b/firmware/export/system.h
index fd8f7cae01..e1d999dcd8 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -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))
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.