1
0
mirror of synced 2025-01-18 00:56:49 +01:00

sys: Fix resource embedding on macos

This commit is contained in:
WerWolv 2021-08-17 18:24:15 +02:00
parent a53cfaa63a
commit 2ac1a58d5e

View File

@ -11,7 +11,20 @@
".align 8\n" \
)
#else
#elif defined(OS_MACOS)
#define RESOURCE(name, path) __asm__ ( \
".data;\n" \
".global " #name ";\n" \
".global " #name "_size;\n" \
#name ":\n" \
".incbin \"" path "\";\n" \
#name "_size:\n" \
".int " #name "_size - " #name ";\n" \
".align 8;\n" \
)
#elif defined(OS_LINUX)
#define RESOURCE(name, path) __asm__ ( \
".section .rodata\n" \