Skip to content

Commit

Permalink
When generating c# code for multiple worlds, where might be a clash b…
Browse files Browse the repository at this point in the history
…etween multiple generated WasmImportLinkageAttributes. (#884)
  • Loading branch information
owoudenberg authored Mar 19, 2024
1 parent d397c42 commit 6fbcb94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/csharp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ impl WorldGenerator for CSharp {
/* of WASI libc prevent us doing so. */
/* See https://github.com/bytecodealliance/wit-bindgen/issues/777 */
/* and https://github.com/WebAssembly/wasi-libc/issues/452 */
/* The component model `start` function might be an alternative to this depending on whether it
/* The component model `start` function might be an alternative to this depending on whether it */
/* has the same constraints as `cabi_realloc` */
__attribute__((__weak__, __export_name__("cabi_realloc")))
void *cabi_realloc(void *ptr, size_t old_size, size_t align, size_t new_size) {
Expand Down Expand Up @@ -586,7 +586,7 @@ impl WorldGenerator for CSharp {
// temporarily add this attribute until it is available in dotnet 9
namespace System.Runtime.InteropServices
{
public class WasmImportLinkageAttribute : Attribute {}
internal partial class WasmImportLinkageAttribute : Attribute {}
}
"#,
);
Expand Down

0 comments on commit 6fbcb94

Please sign in to comment.