summaryrefslogtreecommitdiff
path: root/firmware/export/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config.h')
-rw-r--r--firmware/export/config.h12
1 files changed, 10 insertions, 2 deletions
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