[wasm] Include the pinvoke table into a separate file, so the generated declarations...
authorZoltan Varga <vargaz@gmail.com>
Sun, 31 May 2020 20:26:12 +0000 (16:26 -0400)
committerGitHub <noreply@github.com>
Sun, 31 May 2020 20:26:12 +0000 (16:26 -0400)
commit7713215d7b4bebb6aa6838d5b50d899308bce8ea
treebbf567527ad9f58380831b7fe1b7c6e3a895ce2a
parent3ab330be92ec36f1b0eeac6029e5541d2c0dc290
[wasm] Include the pinvoke table into a separate file, so the generated declarations don't conflict with the ones in the header files included by driver.c. (#37202)

* [wasm] Include the pinvoke table into a separate file, so the generated declarations don't conflict with the ones in the header files included by driver.c.

Same as https://github.com/mono/mono/pull/19853.

* Update src/mono/wasm/runtime/pinvoke.c

Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
src/mono/wasm/Makefile
src/mono/wasm/runtime/driver.c
src/mono/wasm/runtime/pinvoke.c [new file with mode: 0644]
src/mono/wasm/runtime/pinvoke.h [new file with mode: 0644]
tools-local/tasks/mobile.tasks/WasmAppBuilder/PInvokeTableGenerator.cs