diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2022-09-22 18:10:36 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2022-09-27 10:00:03 -0400 |
commit | 9ed36ec22f7ea880b64fa11d2c0d49485287ad03 (patch) | |
tree | 6c9aa20b995e563e787ef6abadeb98bbb08a105f | |
parent | 09cb3c7843d1bfe24f8259a73441c6398d2c0339 (diff) | |
download | rockbox-9ed36ec22f7ea880b64fa11d2c0d49485287ad03.tar.gz rockbox-9ed36ec22f7ea880b64fa11d2c0d49485287ad03.zip |
FS#13361: Fix some compilation under MacOS (Michael Landherr)
Change-Id: Id7e0576e355a1d71493fb7b277fd92f38b7edab4
-rw-r--r-- | docs/CREDITS | 1 | ||||
-rw-r--r-- | firmware/export/config.h | 12 |
2 files changed, 11 insertions, 2 deletions
diff --git a/docs/CREDITS b/docs/CREDITS index 3a6fcb83b9..86e009c8a8 100644 --- a/docs/CREDITS +++ b/docs/CREDITS | |||
@@ -711,6 +711,7 @@ Fabrice Bellard | |||
711 | Selami Dinçer | 711 | Selami Dinçer |
712 | Matej Golian | 712 | Matej Golian |
713 | James Le Cuirot | 713 | James Le Cuirot |
714 | Michael Landherr | ||
714 | 715 | ||
715 | The libmad team | 716 | The libmad team |
716 | The wavpack team | 717 | The wavpack team |
diff --git a/firmware/export/config.h b/firmware/export/config.h index 5cb89ed15a..2519b87f0d 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -1078,8 +1078,16 @@ Lyre prototype 1 */ | |||
1078 | * only while main() runs), otherwise things may go wild, | 1078 | * only while main() runs), otherwise things may go wild, |
1079 | * from crashes to freezes to exploding daps. | 1079 | * from crashes to freezes to exploding daps. |
1080 | */ | 1080 | */ |
1081 | #define INIT_ATTR __attribute__ ((section(".init"))) | 1081 | |
1082 | #define INITDATA_ATTR __attribute__ ((section(".initdata"))) | 1082 | |
1083 | #if defined(__APPLE__) && defined(__MACH__) | ||
1084 | #define INIT_ATTR __attribute__((section ("__INIT,.init"))) | ||
1085 | #define INITDATA_ATTR __attribute__((section ("__INITDATA,.initdata"))) | ||
1086 | #else | ||
1087 | #define INIT_ATTR __attribute__ ((section(".init"))) | ||
1088 | #define INITDATA_ATTR __attribute__ ((section(".initdata"))) | ||
1089 | #endif | ||
1090 | |||
1083 | #define HAVE_INIT_ATTR | 1091 | #define HAVE_INIT_ATTR |
1084 | #else | 1092 | #else |
1085 | #define INIT_ATTR | 1093 | #define INIT_ATTR |