Skip to content

Commit 49470f9

Browse files
authored
Merge pull request #3326 from cesanta/ethram
Be less intrusive with non-ld-savvy users
2 parents 7e0d066 + f7cf4f6 commit 49470f9

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

mongoose.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3206,12 +3206,8 @@ struct mg_tcpip_spi {
32063206
#endif // 64BYTE_ALIGNED
32073207

32083208
#ifndef MG_ETH_RAM
3209-
#if defined(__GNUC__)
3210-
#define MG_ETH_RAM __attribute__((section(".eth_ram")))
3211-
#else
32123209
#define MG_ETH_RAM
3213-
#endif // compiler
3214-
#endif // ETH_RAM
3210+
#endif
32153211

32163212
#endif
32173213

src/net_builtin.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,7 @@ struct mg_tcpip_spi {
142142
#endif // 64BYTE_ALIGNED
143143

144144
#ifndef MG_ETH_RAM
145-
#if defined(__GNUC__)
146-
#define MG_ETH_RAM __attribute__((section(".eth_ram")))
147-
#else
148145
#define MG_ETH_RAM
149-
#endif // compiler
150-
#endif // ETH_RAM
146+
#endif
151147

152148
#endif

0 commit comments

Comments
 (0)