mirror of https://github.com/WerWolv/ImHex.git
sys: Fix resource embedding on macos
This commit is contained in:
parent
a53cfaa63a
commit
2ac1a58d5e
|
@ -11,7 +11,20 @@
|
||||||
".align 8\n" \
|
".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__ ( \
|
#define RESOURCE(name, path) __asm__ ( \
|
||||||
".section .rodata\n" \
|
".section .rodata\n" \
|
||||||
|
|
Loading…
Reference in New Issue