]> git.sur5r.net Git - openocd/commitdiff
Michael Fischer <fischermi@t-online.de> fix compile problems on Mac
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 8 May 2009 18:54:59 +0000 (18:54 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 8 May 2009 18:54:59 +0000 (18:54 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1678 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/flash/cfi.c

index b4bb605339e9076c732909de4dca69d6e50cfa55..edc4645f8c8f4dafe4e066e39e288f4b848de133 100644 (file)
@@ -121,7 +121,7 @@ static void cfi_fixup(flash_bank_t *bank, cfi_fixup_t *fixups)
 }
 
 /* inline u32 flash_address(flash_bank_t *bank, int sector, u32 offset) */
-__inline__ u32 flash_address(flash_bank_t *bank, int sector, u32 offset)
+static __inline__ u32 flash_address(flash_bank_t *bank, int sector, u32 offset)
 {
        /* while the sector list isn't built, only accesses to sector 0 work */
        if (sector == 0)