Open yowl opened 2 days ago
This is not Wasm-specific issue. It applies to linking custom code native AOT on all non-Windows architectures. E.g. if somebody creates a Windows API shims for Linux and tries to link them into Native AOT app, they are going to hit the same collision.
NAOT runtime tries to avoid these sort of name collisions by using Rh or Pal prefix, but this pattern is not followed everywhere. CloseHandle
should not really exist in non-Windows NAOT runtime at all.
If you want to link to some c code with a name that is already used, e.g.
You hit
(from Discord https://discord.com/channels/143867839282020352/1141126727028985877/1312127937109299412)