mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-09 05:34:31 -04:00
Use Read-Only DATA (__RODATA) instead of __DATA
Co-authored-by: Weijia Wang <contact@weijia.wang> Signed-off-by: Torrekie Gen <me@torrekie.dev>
This commit is contained in:
parent
d135666e88
commit
f430ba5bd5
2 changed files with 4 additions and 4 deletions
|
|
@ -64,8 +64,8 @@ static int timeouts_enabled = 1;
|
|||
static int is_atty = 0;
|
||||
|
||||
#if __APPLE__
|
||||
extern const struct test __start_test_section __asm("section$start$__DATA$test_section");
|
||||
extern const struct test __stop_test_section __asm("section$end$__DATA$test_section");
|
||||
extern const struct test __start_test_section __asm("section$start$__RODATA$test_section");
|
||||
extern const struct test __stop_test_section __asm("section$end$__RODATA$test_section");
|
||||
#else
|
||||
extern const struct test __start_test_section, __stop_test_section;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue